]> ruin.nu Git - ndwebbie.git/blob - root/src/alliances/hostile.tt2
Show how many times an alliance has been targeted by us.
[ndwebbie.git] / root / src / alliances / hostile.tt2
1 [% META title = 'Hostile Alliances' %]
2 <form action="[% c.uri_for('hostile') %]" method="post"><p>
3         Show last <input style="width: 4em" type="text" name="ticks" value="[% ticks %]"> ticks
4         <input type="submit" value="Submit">
5         </p>
6 </form>
7 <form action="[% c.uri_for('hostile') %]" method="post"><p>
8         Show hostile counts between <input style="width: 4em" type="text" name="begintick" value="[% begin_tick %]"> and <input style="width: 4em" type="text" name="endtick" value="[% end_tick %]">
9         <input type="submit" value="Submit">
10         </p>
11 </form>
12 <table class="stats">
13         <tr>
14                 <th>Alliance</th>
15                 <th>Hostile Counts</th>
16                 <th>Targeted by us</th>
17                 <th>Raid targets</th>
18         </tr>
19 [% FOR a IN alliances %]
20         <tr class="[% loop.count % 2 ? 'even' : 'odd' %]">
21                 <td><a href="[% c.uri_for('edit',a.aid) %]">[% a.alliance %]</a></td>
22                 <td>[% a.hostile_count %]</td>
23                 <td>[% a.targeted %]</td>
24                 <td>[% a.targeted_raids %]</td>
25         </tr>
26 [% END %]
27 </table>