From: Ant Zucaro Date: Sun, 27 Oct 2013 15:21:45 +0000 (-0400) Subject: Argh. I always forget to add the template. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba16af1b8ddbb002dfd7bae87cfac8cc014c39e6;p=xonotic%2Fxonstat.git Argh. I always forget to add the template. --- diff --git a/xonstat/templates/top_players_by_time.mako b/xonstat/templates/top_players_by_time.mako new file mode 100644 index 0000000..e101479 --- /dev/null +++ b/xonstat/templates/top_players_by_time.mako @@ -0,0 +1,51 @@ +<%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="navigation"> +${nav.nav('players')} + + +<%block name="title"> +Active Players Index + + +% if not top_players: +

Sorry, no players yet. Get playing!

+ +% else: +##### ACTIVE PLAYERS ##### +
+
+ + + + + + + + + + ##### this is to get around the actual row_number/rank of the player not being in the actual query + <% i = 1 + (top_players.page-1) * 25%> + % for (player_id, nick, alivetime) in top_players.items: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
+

*figures are from the past 7 days

+
+% endif + +${navlinks("top_players_by_time", top_players.page, top_players.last_page)} +
+