From df5811497a597c4b599c8eda9272f8649f2ed1e8 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 8 Mar 2015 09:22:31 -0400 Subject: [PATCH] Make the topactive page mobile-friendly. --- xonstat/templates/top_players_by_time.mako | 78 ++++++++++++---------- 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/xonstat/templates/top_players_by_time.mako b/xonstat/templates/top_players_by_time.mako index e101479..ca2fd9c 100644 --- a/xonstat/templates/top_players_by_time.mako +++ b/xonstat/templates/top_players_by_time.mako @@ -3,49 +3,53 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="navigation"> -${nav.nav('players')} + ${nav.nav('players')} <%block name="title"> -Active Players Index + Active Players Index % if not top_players: -

Sorry, no players yet. Get playing!

+

Sorry, no players yet. Get playing!

% else: -##### ACTIVE PLAYERS ##### -
-
- - - - - - - - - - ##### this is to get around the actual row_number/rank of the player not being in the actual query - <% i = 1 + (top_players.page-1) * 25%> - % for (player_id, nick, alivetime) in top_players.items: - - - % if player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
-

*figures are from the past 7 days

-
-% endif + ##### ACTIVE PLAYERS ##### +
+
+ + + + + + + + + + + ##### this is to get around the actual row_number/rank of the player not being in the actual query + <% i = 1 + (top_players.page-1) * 25%> + % for (player_id, nick, alivetime) in top_players.items: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
+ *figures are from the past 7 days +
+
-${navlinks("top_players_by_time", top_players.page, top_players.last_page)} -
- +
+
+ ${navlinks("top_players_by_time", top_players.page, top_players.last_page)} +
+
+% endif -- 2.39.2