From: Ant Zucaro Date: Mon, 24 Dec 2012 17:55:16 +0000 (-0500) Subject: Whoops, add the game finder template! X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c943143f4b6b2cdf082834fc3a44ed083d285978;p=xonotic%2Fxonstat.git Whoops, add the game finder template! --- diff --git a/xonstat/templates/game_finder.mako b/xonstat/templates/game_finder.mako new file mode 100644 index 0000000..bca5e20 --- /dev/null +++ b/xonstat/templates/game_finder.mako @@ -0,0 +1,47 @@ +<%inherit file="base.mako"/> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="css"> + ${parent.css()} + + + +% if len(recent_games) > 0: +
+
+

Recent Games

+ + + + + + + + + + + + + % for rg in recent_games.items: + + + + + + + + % else: + ${rg.nick_html_colors|n} + % endif + + % endfor + +
TypeServerMapTimeWinner
view${rg.server_name}${rg.map_name}${rg.fuzzy_date} + % if rg.player_id > 2: + ${rg.nick_html_colors|n}
+
+
+ + +${navlinks("game_finder", recent_games.page, recent_games.last_page, search_query=query)} +% endif