From: Ant Zucaro Date: Sun, 3 Sep 2017 15:10:20 +0000 (-0400) Subject: Add the template as well. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=11652a016fc96d6277604e22f757daaf36e605b7 Add the template as well. --- 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