X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=389f0c981b416be0eeb749bb1535165089e9c573;hb=e68b024fad07785b2970314da4d7b348032ef67a;hp=67446bc079a9705d6179aa92bc754d0b7e6e905c;hpb=ab01b511f02a52d5386be63f228f9237b0e4586f;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 67446bc..389f0c9 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -2,74 +2,163 @@ <%namespace name="nav" file="nav.mako" /> <%namespace file="scoreboard.mako" import="scoreboard" /> <%namespace file="accuracy.mako" import="accuracy" /> +<%namespace file="frag_matrix.mako" import="frag_matrix" /> <%block name="navigation"> -${nav.nav('games')} + ${nav.nav('games')} -<%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

-

- Played on: ${game.start_dt.strftime('%m/%d/%Y at %I:%M %p')}
- Game Type: ${game.game_type_cd}
- Server: ${server.name}
- Map: ${map.name}
-

-
-
+
-
-
-

Scoreboard

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

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 teamscores: +
+ + + + + + + % for ts in teamscores: + + % endfor + +
TeamScore
${ts.team.capitalize()}${ts.score}
+
+ % endif
-
- -% if len(pgstats) > 0: -
-
-

Accuracy Information

-