X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=2b7cd70670330224e6d0011b6eaea834e9f69f7e;hb=e8beeac79a7010adef4d91a4a000a608171d0a0e;hp=0327e6133e90e41cf7b1458b7ba95f4ab6caae93;hpb=279cc80af658609e83cc19c324b9b6ffa586a9e4;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 0327e61..2b7cd70 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -4,115 +4,149 @@ <%namespace file="accuracy.mako" import="accuracy" /> <%block name="navigation"> -${nav.nav('games')} + ${nav.nav('games')} -<%block name="css"> - ${parent.css()} - - - -<%block name="js"> - - +<%block name="foundation"> + <%block name="title"> -Game Information + Game Information % if game is None: -

Sorry, that game wasn't found!

+

Sorry, that game wasn't found!

% else: -
-
-

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 -

- -
-
+
-
-
-

Scoreboard

- ${scoreboard(game.game_type_cd, pgstats, show_elo, show_latency)} -
-
+
+

Game #${game.game_id}

+

+ ${gametype.descr}
+ Played ${game.fuzzy_date()}
+ 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 len(captimes) > 0: -
-
-

Best Flag Capture Times

- - - - - - - - - % for pgs in captimes: - - - - - % endfor - -
NickCaptime
- % if pgs.player_id > 2: - - ${pgs.nick_html_colors()|n} - - % else: - ${pgs.nick_html_colors()|n} - % endif - ${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}
+ % if teamscores: +
+ + + + + + + % for ts in teamscores: + + % endfor + +
TeamScore
${ts.team.capitalize()}${ts.score}
+
+ % endif
-
-% endif + ##### Games that have team scores push the scoreboard table to the right by + ##### one column. + % if len(tgstats) == len(stats_by_team): + % for tgstat in tgstats: +
-% if len(pgstats) > 0 and len(pwstats) > 0: -
-
-

Accuracy Information

- + ##### Games that do not have team scores use the full width + % else: + % for team in stats_by_team.keys(): +
+
+ ${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 + +
NickCaptime
+ % if pgs.player_id > 2: + + ${pgs.nick_html_colors()|n} + + % else: + ${pgs.nick_html_colors()|n} + % endif + ${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}
+
+
+ % endif + + % if len(pgstats) > 0 and len(pwstats) > 0: +
+
+ +
+
+ % endif % endif