]> ruin.nu Git - ndwebbie.git/blobdiff - root/lib/inc/targetlist.tt2
Converted raids page
[ndwebbie.git] / root / lib / inc / targetlist.tt2
index 4f8cced40415ab2b905d7c8bc732bbd5f4561b05..43431ce9f812f0b966da3458b243e8b179727198 100644 (file)
@@ -1,18 +1,19 @@
-[% IF targets%]
+[% IF claimedtargets.size > 0 %]
 <table>
        <tr><th>Target</th><th>Tick</th></tr>
        [% FOR target IN claimedtargets %]
        <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 %]">
+               <td>[% IF target.released_coords %]<a href="[% c.uri_for('/stats/find',target.coords)%]">
+                               [% target.coords%][% IF target.launched%]*[% END %]</a>
+                       [%ELSE%]Target [%target.id%][% END %]</td>
+               <td><a href="[% c.uri_for('/raids/view',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="Unclaim target" type="button" value="U" class="small" onclick =
+                       "$.get('/jsrpc/unclaim/[% target.raid %]//[% target.id %]/[% target.wave %]',{},parseUpdate)">
                        <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 %]')" />
+                       "$.get('/jsrpc/joinable/[% target.raid %]//[% target.id %]/[% target.wave %]/[% target.joinable %]',{},parseUpdate)">
                </td>
        </tr>
        [% END %]