From 4c5e99ba8fdd064ca20095a358cebea62f2d0337 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 8 Mar 2015 09:33:49 -0400 Subject: [PATCH] Make the top maps page mobile-friendly. --- .../templates/top_maps_by_times_played.mako | 73 ++++++++++--------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/xonstat/templates/top_maps_by_times_played.mako b/xonstat/templates/top_maps_by_times_played.mako index 8de413e..ceb32f8 100644 --- a/xonstat/templates/top_maps_by_times_played.mako +++ b/xonstat/templates/top_maps_by_times_played.mako @@ -3,11 +3,11 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="navigation"> -${nav.nav('maps')} + ${nav.nav('maps')} <%block name="title"> -Active Maps Index + Active Maps Index % if not top_maps: @@ -15,36 +15,41 @@ Active Maps Index % else: ##### ACTIVE SERVERS ##### -
- - - - - - - - - - ##### this is to get around the actual row_number/rank of the map not being in the actual query - <% i = 1 + (top_maps.page-1) * 25%> - % for (map_id, name, count) in top_maps: - - - % if map_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#MapGames
${i}${name}${name}${count}
-

*figures are from the past 7 days

-
-% endif +
+
+ + + + + + + + + + ##### this is to get around the actual row_number/rank of the map not being in the actual query + <% i = 1 + (top_maps.page-1) * 25%> + % for (map_id, name, count) in top_maps: + + + % if map_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#MapGames
${i}${name}${name}${count}
+ *figures are from the past 7 days +
+
+ +
+
+ ${navlinks("top_maps_by_times_played", top_maps.page, top_maps.last_page)} +
+
-${navlinks("top_maps_by_times_played", top_maps.page, top_maps.last_page)} - - +% endif -- 2.39.2