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