]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/top_players_index.mako
Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / top_players_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="navigation">
5   ${nav.nav('players')}
6 </%block>
7
8 <%block name="title">
9   Active Players Index
10 </%block>
11
12 % if not top_players and start is not None:
13   <h2 class="text-center">Sorry, no more players!</h2>
14
15 % elif not top_players and start is None:
16   <h2 class="text-center">No active players found. Yikes, get playing!</h2>
17
18 % else:
19   ##### ACTIVE PLAYERS #####
20   <div class="row">
21     <div class="small-12 large-6 large-offset-3 columns">
22       <table class="table-hover table-condensed">
23         <thead>
24           <tr>
25             <th class="small-2">#</th>
26             <th class="small-7">Nick</th>
27             <th class="small-3">Play Time</th>
28           </tr>
29         </thead>
30
31         <tbody>
32         % for tp in top_players:
33           <tr>
34             <td>${tp.sort_order}</td>
35             <td class="no-stretch"><a href="${request.route_url('player_info', id=tp.player_id)}" title="Go to the player info page for this player">${tp.nick_html_colors()|n}</a></td>
36             <td>${tp.alivetime}</td>
37           </tr>
38         % endfor
39         </tbody>
40       </table>
41       <p class="text-center"><small>Note: these figures are from the past 7 days</small>
42     </div>
43   </div>
44
45 % if len(top_players) == 20:
46 <div class="row">
47   <div class="small-12 large-6 large-offset-3 columns">
48     <ul class="pagination">
49       <li>
50         <a  href="${request.route_url('top_players_index', _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
51       </li>
52     </ul>
53   </div>
54 </div>
55 % endif
56
57 % endif