1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="scoreboard.mako" import="scoreboard" />
4 <%namespace file="accuracy.mako" import="accuracy" />
6 <%block name="navigation">
12 <link href="/static/css/sprites.css" rel="stylesheet">
18 $(".collapse").collapse();
20 // show accordion only when loaded to prevent rollup from being seen
21 $("#acc-accordion").css('display', '');
31 <h2>Sorry, that game wasn't found!</h2>
36 <div class="small-12 columns">
37 <h3>Game #${game.game_id}</h3>
39 <img src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}"/> ${gametype.descr} (${game.game_type_cd})<br />
40 Played ${game.fuzzy_date()} <span class="abstime" data-epoch="${game.epoch()}" title="${game.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}"> <i class="fa fa-info-circle"></i></span><br />
41 Server: <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a><br />
42 Map: <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a><br />
43 % if game.duration is not None:
44 Duration: ${"%s:%02d" % (game.duration.seconds/60, game.duration.seconds%60)}
50 <div class="small-3 columns">
51 <table class="table-condensed">
57 % for ts in teamscores:
58 <tr class="${ts.team}"><td>${ts.team.capitalize()}</td><td>${ts.score}</td></tr>
66 ##### Games that have team scores push the scoreboard table to the right by
68 % if len(tgstats) == len(stats_by_team):
69 % for tgstat in tgstats:
72 <div class="small-1 columns teamscore">
73 <div class="teamname ${tgstat.team_html_color()}">
74 ${tgstat.team_html_color().capitalize()}
76 <div class="${tgstat.team_html_color()}">
77 % if game.game_type_cd == 'ctf':
79 % elif game.game_type_cd == 'ca':
87 <div class="small-11 columns game">
88 ${scoreboard(game.game_type_cd, stats_by_team[tgstat.team], show_elo, show_latency)}
93 ##### Games that do not have team scores use the full width
95 % for team in stats_by_team.keys():
97 <div class="small-12 columns game">
98 ${scoreboard(game.game_type_cd, stats_by_team[team], show_elo, show_latency)}
104 % if len(captimes) > 0:
106 <div class="small-6 columns">
107 <h3>Best Flag Capture Times</h3>
108 <table class="table-hover table-condensed">
116 % for pgs in captimes:
119 % if pgs.player_id > 2:
120 <a href="${request.route_url("player_info", id=pgs.player_id)}"
121 title="Go to the info page for this player">
122 <span class="nick">${pgs.nick_html_colors()|n}</span>
125 <span class="nick">${pgs.nick_html_colors()|n}</span>
128 <td>${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}</td>
137 % if len(pgstats) > 0 and len(pwstats) > 0:
139 <div class="small-12 columns">
140 <ul class="accordion" data-accordion>
141 % for pgstat in pgstats:
142 % if pgstat.player_game_stat_id in pwstats:
143 <li class="accordion-navigation">
144 <a href="#accuracy-${pgstat.player_game_stat_id}">Accuracy for ${pgstat.nick_html_colors()|n}</a>
145 <div id="accuracy-${pgstat.player_game_stat_id}" class="content">
146 ${accuracy(pwstats[pgstat.player_game_stat_id])}