X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Frank_index.mako;h=2a72a9483044d7a2629a14b277e9527807e69e36;hp=3ddb7f9597d2d337c205adb0d1109a7c8cdf857b;hb=19ac922f737702914fc4fd63349d6d77b10c6fbf;hpb=1be837fea8fa3e48095a3ddf3fbfcce8cf7387e3
diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako
old mode 100755
new mode 100644
index 3ddb7f9..2a72a94
--- 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()}
-%block>
-
-% 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
-
-
- Rank |
- Nick |
- Elo |
-
-<% i = 1 %>
-% for (rank, player) in ranks:
-
- ${i} |
- ${player.nick_html_colors()|n}
- | ${round(rank.elo, 3)}
- |
-<% i += 1 %>
-% endfor
-
-
-
-${navlinks("rank_index_paged", ranks.page, ranks.last_page)}
-% endif
+<%inherit file="base.mako"/>
+<%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
+%block>
+
+% if not ranks:
+Sorry, no ranks yet. Get some buddies together and start playing!
+
+% else:
+
+
+ Rank |
+ Nick |
+ Elo |
+
+<% i = 1 %>
+% for rank in ranks:
+
+ ${rank.rank} |
+ ${rank.nick_html_colors()|n}
+ | ${round(rank.elo, 3)}
+ |
+<% i += 1 %>
+% endfor
+
+
+
+${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}
+% endif