From a43d75356e8e1c09bc0df1cec495abf0d263884b Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 8 Mar 2015 09:27:18 -0400 Subject: [PATCH] Make the topservers page mobile-friendly. --- xonstat/templates/top_servers_by_players.mako | 75 ++++++++++--------- 1 file changed, 40 insertions(+), 35 deletions(-) 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 -- 2.39.2