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

Game Detail

+

Game Detail

+
+ ${game.game_type_cd}

- 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

+ +
+ % if teamscores: +
+ + + + + + + % for ts in teamscores: + + % endfor + +
TeamScore
${ts.team.capitalize()}${ts.score}
+ % endif
+% if len(tgstats) == len(stats_by_team): +## if we have teamscores in the db +% for tgstat in tgstats: +
+
+
+ ${tgstat.team_html_color().capitalize()} +
+
+ % if game.game_type_cd == 'ctf': + ${tgstat.caps} + % elif game.game_type_cd == 'ca': + ${tgstat.rounds} +## dom -> ticks, rc -> laps, nb -> goals, as -> objectives + % else: + ${tgstat.score} + % endif +
+
+
+ ${scoreboard(game.game_type_cd, stats_by_team[tgstat.team], show_elo, show_latency)} +
+
+% endfor +% else: +% for team in stats_by_team.keys():
-

Scoreboard

- ${scoreboard(game.game_type_cd, pgstats)} + ${scoreboard(game.game_type_cd, stats_by_team[team], show_elo, show_latency)}
+% endfor +% endif % 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_cap.seconds) + (pgs.fastest_cap.microseconds/1000000.0), 2)}
${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}
@@ -80,17 +131,17 @@ Game Information % endif -% if len(pgstats) > 0: +% if len(pgstats) > 0 and len(pwstats) > 0:

Accuracy Information

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