X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Frank_index.mako;h=f1ad358b97d357b17e35c5f93d3b9968ef2ee4dd;hb=ec7b09190ffc16b0d7b0d55947a91fc31a42bde1;hp=a3ce68f4ba207b90fe8b01d02a854c70e5c0632b;hpb=1039495b9bdc262055b315f60f49167bd300b13b;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako old mode 100755 new mode 100644 index a3ce68f..f1ad358 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -1,43 +1,39 @@ -<%inherit file="base.mako"/> -<%namespace file="navlinks.mako" import="navlinks" /> - -<%block name="title"> -Rank Index - ${parent.title()} - - -% if not ranks: -

Sorry, no ranks yet. Get some buddies together and start playing!

- -% else: -

-% if game_type_cd == 'dm': -Deathmatch -% elif game_type_cd == 'duel': -Duel -% elif game_type_cd == 'tdm': -Team Deathmatch -% elif game_type_cd == 'ctf': -Capture The Flag -% endif - -Rank Index

- - - - - - -<% i = 1 %> -% for rank in ranks: - - - -<% i += 1 %> -% endfor -
RankNickElo
${rank.rank}${rank.nick_html_colors()|n} - ${round(rank.elo, 3)} -
- - -${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)} -% endif +<%inherit file="base.mako"/> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="title"> + ${game_type.descr} Rank Index + + +
+
+ % if not ranks: +

Sorry, no ranks yet. Get some buddies together and start playing!

+ + % else: + + + + + + + <% i = 1 %> + % for rank in ranks: + + + + <% i += 1 %> + % endfor +
RankNickElo
${rank.rank}${rank.nick_html_colors()|n} + ${int(round(rank.elo))} +
+ % endif +
+
+ +
+
+ + ${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)} +
+