]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_index.mako
Simplify the rank table calculations. Woohoo, negative LOC!
[xonotic/xonstat.git] / xonstat / templates / player_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
4
5 <%block name="navigation">
6 ${nav.nav('players')}
7 </%block>
8
9 <%block name="title">
10 Player Index
11 </%block>
12
13 % if not players:
14 <h2>Sorry, no players yet. Get playing!</h2>
15
16 % else:
17 <div class="row">
18   <div class="span6">
19     <form method="get" action="${request.route_url('search')}">
20       <input type="hidden" name="fs" />
21       <input type="text" name="nick" />
22       <input type="submit" value="search" />
23     </form>
24     <table class="table table-bordered table-condensed">
25       <tr>
26         <th>Nick</th>
27         <th class="create-dt">Joined</th>
28       </tr>
29     % for player in players:
30       <tr>
31         <td><a href="${request.route_url("player_info", id=player.player_id)}" title="Go to this player's info page">${player.nick_html_colors()|n}</a></th>
32         <td><span class="abstime" data-epoch="${player.epoch()}" title="${player.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${player.joined_pretty_date()}</span></th>
33       </tr>
34     % endfor
35     </table>
36 % endif
37
38     ${navlinks("player_index", players.page, players.last_page)}
39   </div> <!-- /span4 -->
40 </div> <!-- /row -->