]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_index.mako
Merge zykure-approved, my fixes, and merge fixes :D
[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 offset3">
19     <form class="indexform" method="get" action="${request.route_url('search')}">
20       <input type="hidden" name="fs" />
21       <input class="indexbox" type="text" name="nick" />
22       <input type="submit" value="search" />
23     </form>
24     <table class="table table-hover table-condensed">
25       <tr>
26         <th style="width:100px;">Player ID</th>
27         <th>Nick</th>
28         <th class="create-dt">Joined</th>
29         <th></th>
30       </tr>
31     % for player in players:
32       <tr>
33         <td>${player.player_id}</th>
34         <td class="player-nick"><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>
35         <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>
36         <td class="tdcenter">
37           <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="View recent games by this player">
38             <i class="glyphicon glyphicon-list"></i>
39           </a>
40         </td>
41       </tr>
42     % endfor
43     </table>
44 % endif
45
46     ${navlinks("player_index", players.page, players.last_page)}
47   </div> <!-- /span4 -->
48 </div> <!-- /row -->