]> ruin.nu Git - ndwebbie.git/blob - root/src/alliances/fleet.tt2
Added alliance member fleets
[ndwebbie.git] / root / src / alliances / fleet.tt2
1 [% META title = 'Alliance P-Scans' %]
2
3 [% USE JSON %]
4
5 <table class="stats">
6         <tr>
7                 <th>Coords</th>
8                 <th>Race</th>
9                 <th>Tick</th>
10 [% FOR s IN ships %]
11                 <th>[% s.ship %]</th>
12 [% END %]
13         </tr>
14 [% FOR m IN members %]
15         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
16                 <td><a href="[% c.uri_for('/stats/planet',m.pid) %]">[% m.coords %]</a></td>
17                 <td>[% m.race %]</td>
18                 <td>[% m.tick %]</td>
19 [% fleet = JSON.json_decode(m.ships) %]
20 [% FOR s IN ships %]
21                 <td>[% fleet.${s.id} %]</td>
22 [% END %]
23         </tr>
24 [% END %]
25 </table>