X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=e4981426faf492624f7722590840da45b666c65e;hb=c4c8ee1cbe0851d7d23dbb6b8aa25e8ecd5f3ee8;hp=841e3d9219967b56aa3b8bd898b0eff6ee2badb3;hpb=528ff8b0a330910baf5f068cec95f9755de663e7;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 841e3d9..e498142 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -8,18 +8,18 @@ ${nav.nav('games')} %block> <%block name="css"> - ${parent.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"> @@ -32,55 +32,71 @@ Game Information % else:
- Played: ${game.fuzzy_date()}
- Game Type: ${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
+ 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.seconds) + (pgs.fastest.microseconds/1000000.0), 2)} | -${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)} | + % endfor