X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=b9ab8765282b5385401386b7272deb5443e4a377;hb=a8e3862f38d6dce0b6b1fd9b7b700e97f6b15968;hp=0e3a383ba9c8eb1aa0030bc272cce393e05219ef;hpb=ffdcceb22a5b8babc81d9c2c36e542f30e417c39;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 0e3a383..b9ab876 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -7,15 +7,19 @@ ${nav.nav('games')} %block> +<%block name="css"> +${parent.css()} + +%block> + <%block name="js"> - - - +// show accordion only when loaded to prevent rollup from being seen +$("#acc-accordion").css('display', ''); + %block> <%block name="title"> @@ -28,50 +32,97 @@ Game Information % else:
- Played: ${game.fuzzy_date()}
- Game Type: ${game.game_type_cd}
- Server: ${server.name}
- Map: ${map.name}
+ Played: ${game.fuzzy_date()}
+ Game Type: ${gametype.descr} (${game.game_type_cd})
+ Server: ${server.name}
+ Map: ${map.name}
+ % if game.duration is not None:
+ Duration: ${"%s:%02d" % (game.duration.seconds/60, game.duration.seconds%60)}
+ % endif
Team | +Score | + + + % for ts in teamscores: +
---|---|
${ts.team.capitalize()} | ${ts.score} |
Nick | -Captime | +Nick | +Captime |
---|---|---|---|
+ | |||
% if pgs.player_id > 2: - + ${pgs.nick_html_colors()|n} - + % else: - ${pgs.nick_html_colors()|n} + ${pgs.nick_html_colors()|n} % endif - | -${round(float(pgs.fastest_cap.seconds) + (pgs.fastest_cap.microseconds/1000000.0), 2)} | -${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)} | + % endfor