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