]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/intel/find.tt2
Search for intel by nick
[ndwebbie.git] / root / src / intel / find.tt2
index 55a9e50faad99f01795a62e34c133997784887ae..dd356b649953e84e0e85ef46fc25547e8d21a6d8 100644 (file)
@@ -1,9 +1,22 @@
 [% META title = 'Find' %]
 
-<p>Could not find: &quot;[% c.req.param('coords') | html %]&quot;</p>
+<p>Could not find a single planet matching: &quot;[% searchterm | html %]&quot;</p>
+
+[% IF planets %]
+<table>
+       <tr><th>Coords</th><th>Nick</th></tr>
+       [% FOR p IN planets %]
+       <tr>
+               <td><a href="[% c.uri_for('planet',p.id) %]">[% p.coords %]</a></td>
+               <td>[% p.nick %]</td>
+       </tr>
+       [% END %]
+</table>
+[% END %]
 
 <p>The following syntaxes are possible:</p>
 <ul>
        <li>X:Y:Z tick (i.e. &quot;1:1:1 37&quot;) Finds the planet that had the coords at the specified tick</li>
        <li>X:Y:Z (i.e.  &quot;1:1:1&quot;) Finds the planet that had the coords at the current tick</li>
+       <li>A nick, with or without wildcard like %</li>
 </ul>