]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/rank_index.mako
Remove more refs to sqlahelper.
[xonotic/xonstat.git] / xonstat / templates / rank_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace file="navlinks.mako" import="navlinks" />
3
4 <%block name="title">
5     ${game_type.descr} Rank Index
6 </%block>
7
8 <div class="row">
9   <div class="small-12 large-6 large-offset-3 columns">
10     % if not ranks:
11       <h2>Sorry, no ranks yet. Get some buddies together and start playing!</h2>
12
13     % else:
14       <table class="table table-hover table-condensed" border="1">
15         <tr>
16           <th class="small-2">Rank</th>
17           <th class="small-8">Nick</th>
18           <th class="small-2">Elo</th>
19         </tr>
20         <% i = 1 %>
21         % for rank in ranks:
22         <tr>
23           <td>${rank.rank}</td>
24           <td class="no-stretch"><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${rank.nick_html_colors()|n}</a></th>
25           <td>${int(round(rank.elo))}</th>
26         </tr>
27         <% i += 1 %>
28         % endfor
29       </table>
30     % endif
31   </div>
32 </div>
33
34 <div class="row">
35   <div class="small-12 large-6 large-offset-3 columns">
36     <!-- navigation links -->
37     ${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}
38   </div>
39 </div>