Remove Persona since it was shut down. :(
[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="small-12 large-6 large-offset-3 columns">
19
20       <form method="get" action="${request.route_url('search')}">
21         <div class="row">
22           <div class="small-7 columns">
23             <input type="hidden" name="fs" />
24             <input type="text" name="nick" />
25           </div>
26           <div class="small-5 columns">
27             <input type="submit" value="search" />
28           </div>
29         </div>
30       </form>
31
32       <table class="table-hover table-condensed">
33         <thead>
34           <tr>
35             <th class="small-3">Player ID</th>
36             <th class="small-5">Nick</th>
37             <th class="small-3">Joined</th>
38             <th class="small-1"></th>
39           </tr>
40         </thead>
41       % for player in players:
42         <tr>
43           <td>${player.player_id}</th>
44           <td class="no-stretch"><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>
45           <td><span class="abstime" data-epoch="${player.epoch()}" title="${player.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${player.fuzzy_date()}</span></th>
46           <td class="text-center">
47             <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="View recent games by this player">
48               <i class="fa fa-list"></i>
49             </a>
50           </td>
51         </tr>
52       % endfor
53       </table>
54
55       ${navlinks("player_index", players.page, players.last_page)}
56     </div>
57   </div>
58 % endif