From 11652a016fc96d6277604e22f757daaf36e605b7 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 3 Sep 2017 11:10:20 -0400 Subject: [PATCH] Add the template as well. --- xonstat/templates/map_top_servers.mako | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 xonstat/templates/map_top_servers.mako diff --git a/xonstat/templates/map_top_servers.mako b/xonstat/templates/map_top_servers.mako new file mode 100644 index 0000000..dcdb73c --- /dev/null +++ b/xonstat/templates/map_top_servers.mako @@ -0,0 +1,55 @@ +<%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> + +<%block name="navigation"> + ${nav.nav('maps')} + + +<%block name="title"> + Map Top Server Index + + +% if not top_servers and last is not None: +

Sorry, no more servers!

+ +% elif not top_servers and last is None: +

No servers found. Yikes, get playing!

+ +% else: +
+
+ + + + + + + + + + % for ts in top_servers: + + + + + + % endfor + +
#ServerGames
${ts.rank}${ts.server_name}${ts.games}
+

Note: these figures are from the past ${lifetime} days

+
+
+ + % if len(top_servers) == 20: +
+
+ +
+
+ % endif + +% endif -- 2.39.2