]> ruin.nu Git - ndwebbie.git/blob - root/lib/inc/targetlist.tt2
4f8cced40415ab2b905d7c8bc732bbd5f4561b05
[ndwebbie.git] / root / lib / inc / targetlist.tt2
1 [% IF targets%]
2 <table>
3         <tr><th>Target</th><th>Tick</th></tr>
4         [% FOR target IN claimedtargets %]
5         <tr>
6                 <td><a href="[% target.released_coords and c.uri_for('/check',target.coords)%]">
7                         [% target.released_coords and target.coords%][% IF target.launched%]*[% END %]</a></td>
8                 <td><a href="[% c.uri_for('/raid',target.raid)%]#target[% target.id %]">
9                         [% target.landingtick %]</a></td>
10                 <td>
11                         <input title="Unclaim target" type="button" value="U" class="small" onclick = 
12                         "claim('/raids?xml=1&amp;raid=[% target.raid %]',[% target.id %],[% target.wave %],'Unclaim')" />
13                         <input title="[% IF target.joinable %]Disable joinable[% ELSE %]Make target joinable[% END %]"
14                                 type="button" class="small" value="[% IF target.joinable %]N[% ELSE %]J[% END %]" onclick = 
15                         "claim('/raids?xml=1&amp;raid=[% target.raid %]',[% target.id %],[% target.wave %],'set&amp;joinable=[% target.joinable %]')" />
16                 </td>
17         </tr>
18         [% END %]
19 </table>
20 [% END %]