X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Frank_index.mako;h=f1ad358b97d357b17e35c5f93d3b9968ef2ee4dd;hp=809a1640c975dd8ea1dc66b9a707ec6483371238;hb=HEAD;hpb=0f1172731cffce343308489ae7d98ff3ca905f8a diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako index 809a164..f1ad358 100644 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -2,46 +2,38 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="title"> -% if game_type_cd == 'dm': -Deathmatch Rank Index -% elif game_type_cd == 'duel': -Duel Rank Index -% elif game_type_cd == 'tdm': -Team Deathmatch Rank Index -% elif game_type_cd == 'ctf': -Capture The Flag Rank Index -% endif + ${game_type.descr} Rank Index
-
+
% if not ranks: -

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

+

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))} -
-
-
+ + + + + + + <% 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)} -
-
-% endif +
+