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