]> ruin.nu Git - ndwebbie.git/blob - root/src/calls/list.tt2
Add missing forum database file
[ndwebbie.git] / root / src / calls / list.tt2
1 [% META title = 'Defense calls' %]
2 <table>
3         <tr><th>Call</th><th>Status</th><th>DC</th><th>Def Fleets</th><th>Member (defprio)</th><th>Landing tick</th><th>Races</th><th>Amount</th><th>Shiptypes</th><th>ETA</th><th>Alliance</th><th>Attackers</th></tr>
4 [% newday = game.tick %]
5 [% FOR call IN calls %]
6         [% WHILE newday - 24 > call.landing_tick %]
7                 [%      newday = newday - 24 %]
8         <tr align="center"><td colspan="4">New day</td></tr>
9         [% END %]
10         <tr align="center" class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
11                 <td class="[% UNLESS call.dc %]Hostile[%END%]"><a href="[% c.uri_for('edit',call.call) %]">[% call.call %]</a></td>
12                 <td>[% call.status %]</td>
13                 <td>[% call.dc %]</td>
14                 <td>[% call.fleets %]</td>
15                 [% prio = call.defprio < minprio ? 'LowestPrio' :
16                         (call.defprio < maxprio ? 'MediumPrio' : 'HighestPrio') %]
17                 <td class="[% prio %]"><a href="[% c.uri_for('/stats/planet',call.planet) %]">
18                         [% call.coords %] ([% call.defprio %])</a></td>
19                 <td>[% call.landing_tick %]</td>
20                 <td>[% call.race.unique.join('/') %]</td>
21                 <td>[% call.amount.join(' / ') %]</td>
22                 <td>[% call.shiptype.unique.join('/') | html %]</td>
23                 <td>[% call.curreta %] ([% call.eta.unique.join('/') %])</td>
24                 <td>[% call.alliance.unique.join('/') %]</td>
25                 <td>[% FOR a IN call.attackers %]
26                         <a href="[% c.uri_for('/stats/find',a) %]">[% a %]</a>
27                         [% UNLESS loop.last %]/[%END%]
28                 [%END%]</td>
29         </tr>
30 [% END %]
31 </table>