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 name="css"> +${parent.css()} + + + +<%block name="js"> +${parent.js()} + + + <%block name="title"> -Game Information - ${parent.title()} +Game Information @@ -11,28 +31,88 @@ Game Information - ${parent.title()}

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

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

Accuracy

-% for pgstat in pgstats: -% if pgstat.player_game_stat_id in pwstats: -Accuracy for ${pgstat.nick_html_colors()|n}: -${accuracy(pwstats[pgstat.player_game_stat_id])} -
-
+
+
+

Game Detail

+ ${game.game_type_cd} +

+ 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 +

+ +
+
+ +
+
+

Scoreboard

+ ${scoreboard(game.game_type_cd, pgstats, show_elo, show_latency)} +
+
+ +% 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 -% endfor + +% if len(pgstats) > 0 and len(pwstats) > 0: +
+
+

Accuracy Information

+ +
+ % endif + +
% endif