Fix the header on the ranks page.
[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 % if game_type_cd == 'dm':
6 Deathmatch Rank Index
7 % elif game_type_cd == 'duel':
8 Duel Rank Index
9 % elif game_type_cd == 'tdm':
10 Team Deathmatch Rank Index
11 % elif game_type_cd == 'ctf':
12 Capture The Flag Rank Index
13 % endif
14 </%block>
15
16 % if not ranks:
17 <h2>Sorry, no ranks yet. Get some buddies together and start playing!</h2>
18
19 % else:
20 <table id="rank-index-table" border="1">
21   <tr>
22     <th>Rank</th>
23     <th>Nick</th>
24     <th>Elo</th>
25   </tr>
26 <% i = 1 %>
27 % for rank in ranks:
28   <tr>
29     <td>${rank.rank}</td>
30     <td><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>
31     <td>${round(rank.elo, 3)}</th>
32   </tr>
33 <% i += 1 %>
34 % endfor
35 </table>
36
37 <!-- navigation links -->
38 ${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}
39 % endif