X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Frank_index.mako;h=c6ea4540426d2a4ec3e3f960f7127f0376a4dcb7;hb=805695575184137e26a744d8e3d8a909018b323c;hp=3ddb7f9597d2d337c205adb0d1109a7c8cdf857b;hpb=1be837fea8fa3e48095a3ddf3fbfcce8cf7387e3;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 3ddb7f9..c6ea454 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -1,43 +1,47 @@ -<%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, player) in ranks: - - - -<% i += 1 %> -% endfor -
RankNickElo
${i}${player.nick_html_colors()|n} - ${round(rank.elo, 3)} -
- - -${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 + + +
+
+ % 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)} +
+