X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fgame_info.mako;h=786e521d165c97d1876446fab4c4705c9e7cc5cc;hb=805695575184137e26a744d8e3d8a909018b323c;hp=b9ab8765282b5385401386b7272deb5443e4a377;hpb=51c42763989fcd89c3d213b897773005ce02c7b7;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index b9ab876..786e521 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -4,157 +4,152 @@ <%namespace file="accuracy.mako" import="accuracy" /> <%block name="navigation"> -${nav.nav('games')} + ${nav.nav('games')} <%block name="css"> -${parent.css()} - + ${parent.css()} + -<%block name="js"> -${parent.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: ${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 -

- -
- % if teamscores: -
- - - - - - - % for ts in teamscores: - - % endfor - -
TeamScore
${ts.team.capitalize()}${ts.score}
-
- % endif -
+
-% if len(tgstats) == len(stats_by_team): -## if we have teamscores in the db -% for tgstat in tgstats: -
-
-
- ${tgstat.team_html_color().capitalize()} -
-
- % if game.game_type_cd == 'ctf': - ${tgstat.caps} - % elif game.game_type_cd == 'ca': - ${tgstat.rounds} -## dom -> ticks, rc -> laps, nb -> goals, as -> objectives - % else: - ${tgstat.score} - % endif -
-
-
- ${scoreboard(game.game_type_cd, stats_by_team[tgstat.team], show_elo, show_latency)} -
-
-% endfor -% else: -% for team in stats_by_team.keys(): -
-
- ${scoreboard(game.game_type_cd, stats_by_team[team], show_elo, show_latency)} -
-
-% endfor -% endif +
+

Game #${game.game_id}

+

+ ${game.game_type_cd} ${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 +

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

-