From: Ant Zucaro Date: Sun, 8 Mar 2015 13:11:55 +0000 (-0400) Subject: Make the ranks page mobile-friendly. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d3067762be7b977bd2ecb38bd1f514641bc761d8;p=xonotic%2Fxonstat.git Make the ranks page mobile-friendly. --- 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 +
+