1 [% META title = 'Defense calls' %]
3 <tr><th>Call</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>
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.id) %]">[% call.id %]</a></td>
12 <td>[% call.dc %]</td>
13 <td>[% call.fleets %]</td>
14 [% prio = call.defprio < minprio ? 'LowestPrio' :
15 (call.defprio < maxprio ? 'MediumPrio' : 'HighestPrio') %]
16 <td class="[% prio %]"><a href="[% c.uri_for('/stats/planet',call.planet) %]">
17 [% call.coords %] ([% call.defprio %])</a></td>
18 <td>[% call.landing_tick %]</td>
19 <td>[% call.race.unique.join('/') %]</td>
20 <td>[% call.amount.join(' / ') %]</td>
21 <td>[% call.shiptype.unique.join('/') | html %]</td>
22 <td>[% call.curreta %] ([% call.eta.unique.join('/') %])</td>
23 <td>[% call.alliance.unique.join('/') %]</td>
24 <td>[% FOR a IN call.attackers %]
25 <a href="[% c.uri_for('/stats/find',a) %]">[% a %]</a>
26 [% UNLESS loop.last %]/[%END%]