X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_index.mako;h=ceca3e34c19265315fd3c024a26184146ec894e9;hp=f9d11de0cbd71e201a2ccad65e291b4f3b344d48;hb=9303565d7bea5e860578c44559f01a8229ebe2fb;hpb=c68e50dd5b3f1e270e076f8631179917b5b12003 diff --git a/xonstat/templates/game_index.mako b/xonstat/templates/game_index.mako old mode 100755 new mode 100644 index f9d11de..ceca3e3 --- a/xonstat/templates/game_index.mako +++ b/xonstat/templates/game_index.mako @@ -1,33 +1,92 @@ -<%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 - - -% if not games: -

Sorry, no games yet. Get playing!

- -% else: -
-
-

Recent Games

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

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

- ${scoreboard(game.game_type_cd, pgstats[game.game_id])} -
- % endfor -
-
- - -${navlinks("game_index_paged", games.page, games.last_page)} -% endif - +<%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="scoreboard.mako" import="scoreboard" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="css"> +${parent.css()} + + + +<%block name="navigation"> +${nav.nav('games')} + + +<%block name="title"> +Game Index + + +% if not games: +

Sorry, no + % if game_type_descr: + ${game_type_descr.lower()} + % endif + games yet. Get playing!

+ +% else: +
+
+

Recent + % if game_type_descr: + ${game_type_descr} + % endif + Games

+
+
+
+
+ +
+
+ % for rg in games.items: +
+ ${rg.game_type_cd} +

${rg.map_name} on ${rg.server_name} (permalink)

+ + ${scoreboard(rg.game_type_cd, pgstats[rg.game_id])} +
+ % endfor +
+
+ +
+
+ + ${navlinks("game_index", games.page, games.last_page, search_query=request.GET)} +
+
+% endif +