]> ruin.nu Git - ndwebbie.git/blobdiff - root/lib/inc/targetlist.tt2
Login/Logout and session support with roles + convert to html 4.01.
[ndwebbie.git] / root / lib / inc / targetlist.tt2
diff --git a/root/lib/inc/targetlist.tt2 b/root/lib/inc/targetlist.tt2
new file mode 100644 (file)
index 0000000..4b1890f
--- /dev/null
@@ -0,0 +1,20 @@
+[% IF targets%]
+<table>
+       <tr><th>Target</th><th>Tick</th></tr>
+       [% FOR target IN targets %]
+       <tr>
+               <td><a href="[% target.released_coords and c.uri_for('/check',target.coords)%]">
+                       [% target.released_coords and target.coords%][% IF target.launched%]*[% END %]</a></td>
+               <td><a href="[% c.uri_for('/raid',target.raid)%]#target[% target.id %]">
+                       [% target.landingtick %]</a></td>
+               <td>
+                       <input title="Unclaim target" type="button" value="U" class="small" onclick = 
+                       "claim('/raids?xml=1&amp;raid=[% target.raid %]',[% target.id %],[% target.wave %],'Unclaim')" />
+                       <input title="[% IF target.joinable %]Disable joinable[% ELSE %]Make target joinable[% END %]"
+                               type="button" class="small" value="[% IF target.joinable %]N[% ELSE %]J[% END %]" onclick = 
+                       "claim('/raids?xml=1&amp;raid=[% target.raid %]',[% target.id %],[% target.wave %],'set&amp;joinable=[% target.joinable %]')" />
+               </td>
+       </tr>
+       [% END %]
+</table>
+[% END %]