]> ruin.nu Git - ndwebbie.git/blob - root/src/intel/index.tt2
Converted intel page
[ndwebbie.git] / root / src / intel / index.tt2
1 [% META title = 'Intel' %]
2
3 [% IF coordslist %]
4 <table class="stats">
5         <tr><th>Coords</th><th>Alliance</th></tr>
6         [% FOR p IN coordslist %]
7         <tr>
8                 <td><a href="[% c.uri_for('planet',p.id) %]">[% p.coords %]</a></td>
9                 <td>[% p.alliance %]</td>
10         </tr>
11         [% END %]
12 </table>
13 [% END %]
14
15
16 <form action="[% c.uri_for('') %]" method="post">
17         <p>Show last <input type="text" name="ticks" value="[% showticks %]"> ticks <input type="submit" value="Show"></p>
18 </form>
19
20 <table class="stats">
21         <tr>
22                 <th>Alliance</th><th>Sender</th>
23                 <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
24                 <th>Target</th><th>Alliance</th>
25                 <th>Reported by</th>
26         </tr>
27 [% FOR i IN intel %]
28         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
29         <td>[% i.oalliance %]</td>
30         <td><a href="[% c.uri_for('planet',i.sender) %]">[% i.ocoords %]</a></td>
31         <td class="[% i.mission %]">[% i.mission %]</td>
32         <td align="center">[% i.landingtick %]</td>
33         <td align="center">[% i.eta %]</td>
34         <td>[% i.amount %]</td>
35         <td><a href="[% c.uri_for('planet',i.target) %]">[% i.tcoords %]</a></td>
36         <td>[% i.talliance %]</td>
37         <td>[% i.username %]</td>
38         </tr>
39 [% END %]
40 </table>
41
42 <form action="[% c.uri_for('') %]" method="post"><fieldset> <legend>Coords</legend>
43         <p>Paste a list of coords that you want to check here</p>
44         <textarea rows="25" cols="80" name="coords"></textarea>
45         <br><input type="submit" value="Submit">
46 </fieldset></form>