From d3067762be7b977bd2ecb38bd1f514641bc761d8 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 8 Mar 2015 09:11:55 -0400 Subject: [PATCH] Make the ranks page mobile-friendly. --- xonstat/templates/rank_index.mako | 66 +++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako index 809a164..c6ea454 100644 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -2,46 +2,46 @@ <%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 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!

+

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 +
+ -- 2.39.2