X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=786e521d165c97d1876446fab4c4705c9e7cc5cc;hb=805695575184137e26a744d8e3d8a909018b323c;hp=eeeeb1e277a719710e24d2e303e9241c366da351;hpb=1cb90e64885b3fd29a851efc6f55bcdbd7e5cc2e;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako old mode 100755 new mode 100644 index eeeeb1e..786e521 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -1,39 +1,155 @@ <%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> <%namespace file="scoreboard.mako" import="scoreboard" /> <%namespace file="accuracy.mako" import="accuracy" /> +<%block name="navigation"> + ${nav.nav('games')} +%block> + +<%block name="css"> + ${parent.css()} + +%block> + +<%block name="foundation"> + +%block> + <%block name="title"> -Game Information - ${parent.title()} + Game Information %block> % if game is None: -
-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}
-
+ ${gametype.descr} (${game.game_type_cd})
+ 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
+
Team | +Score | + + + % for ts in teamscores: +
---|---|
${ts.team.capitalize()} | ${ts.score} |
Nick | +Captime | +
---|---|
+ % 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)} | +