X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=2de16f56e1f8e0db1e211f409ae240ffb5352284;hb=56b928c935f3114a3d9c12c2f97c15d45b0f293e;hp=a397bcbeff141da4cb20a36b32c7a61b9de904da;hpb=5ce604d18736b8c1fa5ab5592d9946f6a05f92a6;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 a397bcb..2de16f5 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -1,9 +1,29 @@ <%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="js"> +${parent.js()} + +%block> + <%block name="title"> -Game Information - ${parent.title()} +Game Information %block> @@ -11,28 +31,88 @@ Game Information - ${parent.title()}
-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}
-
+ 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
+
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)} | +