From: Ant Zucaro Date: Sun, 8 Mar 2015 13:27:18 +0000 (-0400) Subject: Make the topservers page mobile-friendly. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a43d75356e8e1c09bc0df1cec495abf0d263884b;p=xonotic%2Fxonstat.git Make the topservers page mobile-friendly. --- diff --git a/xonstat/templates/top_servers_by_players.mako b/xonstat/templates/top_servers_by_players.mako index 72765f1..ea6912f 100644 --- a/xonstat/templates/top_servers_by_players.mako +++ b/xonstat/templates/top_servers_by_players.mako @@ -3,48 +3,53 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="navigation"> -${nav.nav('servers')} + ${nav.nav('servers')} <%block name="title"> -Active Servers Index + Active Servers Index % if not top_servers: -

Sorry, no servers yet. Get playing!

+

Sorry, no servers yet. Get playing!

% else: ##### ACTIVE SERVERS ##### -
- - - - - - - - - - ##### this is to get around the actual row_number/rank of the server not being in the actual query - <% i = 1 + (top_servers.page-1) * 25%> - % for (server_id, name, count) in top_servers.items: - - - % if server_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#ServerGames
${i}${name}${name}${count}
-

*figures are from the past 7 days

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