]> ruin.nu Git - ndwebbie.git/blobdiff - templates/targetlist.tmpl
Storing government for planets
[ndwebbie.git] / templates / targetlist.tmpl
index 0fd2a737ac925a02a6a653ee2b7c92a54ccc5660..3a2e6e0c5d3e146c2d5abcdf0f3a24cd79395723 100644 (file)
@@ -1,15 +1,20 @@
+<p><input type="button" value="Update target list"
+               onclick = "listTargets('raids?xml=1')"/>
+</p>
 <TMPL_IF Targets>
 <table>
        <tr><th>Target</th><th>Tick</th></tr>
        <TMPL_LOOP Targets>
        <tr>
-               <td><a href="index.pl?page=check&amp;coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a>
-                       <TMPL_IF Launched>*</TMPL_IF></td>
-               <td><a href="raids.php?raid=<TMPL_VAR NAME=Raid>#target<TMPL_VAR NAME=Target>">
+               <td><a href="/check?coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords><TMPL_IF Launched>*</TMPL_IF></a></td>
+               <td><a href="/raids?raid=<TMPL_VAR NAME=Raid>#target<TMPL_VAR NAME=Target>">
                        <TMPL_VAR NAME=Tick></a></td>
-               <td><TMPL_UNLESS AJAX><a href="index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>&amp;cmd=Unclaim&amp;target=<TMPL_VAR NAME=Target>&amp;wave=<TMPL_VAR NAME=Wave>" >U</a>
-                       <TMPL_ELSE><input type="button" value="U" onclick = 
-                               "claim('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'Unclaim')"/>
+               <td><TMPL_UNLESS AJAX><a href="raids?raid=<TMPL_VAR NAME=Raid>&amp;cmd=Unclaim&amp;target=<TMPL_VAR NAME=Target>&amp;wave=<TMPL_VAR NAME=Wave>" >U</a>
+                       <TMPL_ELSE>
+                               <input title="Unclaim target" type="button" value="U" class="small" onclick = 
+                               "claim('/raids?xml=1&amp;raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'Unclaim')"/>
+                               <input title="<TMPL_VAR NAME=JoinableTitle>" type="button" class="small" value="<TMPL_VAR NAME=JoinName>" onclick = 
+                               "claim('/raids?xml=1&amp;raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'set&amp;joinable=<TMPL_VAR NAME=Joinable>')"/>
                        </TMPL_UNLESS>
                </td>
        </tr>