X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_index.mako;h=ecff992c6615638341218f846a3a22b50aa036df;hb=1039495b9bdc262055b315f60f49167bd300b13b;hp=2e908406e7e11ff7b7fe3ed67ffa4416e11c2cce;hpb=5d24ed5b4b64d8773cbecd010a58f3bed069affd;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_index.mako b/xonstat/templates/game_index.mako index 2e90840..ecff992 100755 --- a/xonstat/templates/game_index.mako +++ b/xonstat/templates/game_index.mako @@ -1,24 +1,33 @@ <%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="scoreboard.mako" import="scoreboard" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="navigation"> +${nav.nav('games')} + <%block name="title"> -Game Index - ${parent.title()} +Game Index % if not games:

Sorry, no games yet. Get playing!

% else: -

Recent Games

- -% endif +
+
+

Recent Games

+ % for (game, server, map) in games: +
+

${map.name} on ${server.name} (permalink)

+ ${scoreboard(game.game_type_cd, pgstats[game.game_id])} +
+ % endfor +
+
-% if games.previous_page: -Previous -% endif -% if games.next_page: -Next + +${navlinks("game_index", games.page, games.last_page)} % endif +