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 name="css"> - ${parent.css()} - +${parent.css()} + <%block name="js"> - - +// show accordion only when loaded to prevent rollup from being seen +$("#acc-accordion").css('display', ''); + <%block name="title"> @@ -32,55 +32,71 @@ Game Information % else:
-
-

Game Detail

- ${game.game_type_cd} +

Game Detail

+
+ ${game.game_type_cd}

- 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

+ % if teamscores: +
+ + + + + + + % for ts in teamscores: + + % endfor + +
TeamScore
${ts.team.capitalize()}${ts.score}
+
+ % endif
+% for team in stats_by_team.keys():
-

Scoreboard

- ${scoreboard(game.game_type_cd, pgstats, show_elo, show_latency)} + ${scoreboard(game.game_type_cd, stats_by_team[team], show_elo, show_latency)}
+% endfor % if len(captimes) > 0:

Best Flag Capture Times

- +
- - + + % for pgs in captimes: - - + - - + + + % endfor
NickCaptimeNickCaptime
+
% 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)}
@@ -94,12 +110,12 @@ Game Information

Accuracy Information

- % endif - % endfor + % endif + % endfor +
-
-% endif + % endif
% endif