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()} - - -% 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} + ${round(rank.elo, 3)} +
+ + +${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)} +% endif