]> git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/search.mako
Basic player search functionality.
[xonotic/xonstat.git] / xonstat / templates / search.mako
1 % if results == None:
2 <form action="${request.route_url("search")}" method="get">
3     <input type="hidden" name="form.submitted" />
4     Nick: <input type="text" name="nick" /> <br />
5     <input type="submit" />
6 </form>
7 % endif
8
9 % if result_type == "player":
10 <table>
11     <tr>
12         <th>Player</th>
13         <th>Joined</th>
14     </tr>
15     % for player in results:
16     <tr>
17         <td>${player.nick_html_colors()|n}</td>
18         <td>${player.joined_pretty_date()}</td>
19     </tr>
20     % endfor
21 </table>
22 % endif