1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
19 <link href="/static/css/sprites.css" rel="stylesheet">
23 <h2>Sorry, that map wasn't found!</h2>
28 Added <span class="abstime" data-epoch="${gmap.epoch()}" title="${gmap.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${gmap.fuzzy_date()}</span>
32 <h3>Top Scoring Players</h3>
33 <table class="table table-hover table-condensed">
36 <th style="width:40px;">#</th>
37 <th style="width:150px;">Nick</th>
38 <th style="width:90px;">Score</th>
43 % for (score_player_id, score_nick, score_value) in top_scorers:
46 % if score_player_id != '-':
47 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('player_info', id=score_player_id)}" title="Go to the player info page for this player">${score_nick|n}</a></td>
49 <td class="nostretch" style="max-width:150px;">${score_nick}</td>
51 <td>${score_value}</td>
61 <h3>Most Active Players</h3>
62 <table class="table table-hover table-condensed">
65 <th style="width:40px;">#</th>
66 <th style="width:150px;">Nick</th>
67 <th style="width:90px;">Playing Time</th>
72 % for (player_id, nick, alivetime) in top_players:
75 % if player_id != '-':
76 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
78 <td class="nostretch" style="max-width:150px;">${nick}</td>
90 <h3>Most Active Servers</h3>
91 <table class="table table-hover table-condensed">
94 <th style="width:40px;">#</th>
95 <th style="width:150px;">Name</th>
96 <th style="width:90px;"># Games</th>
101 % for (server_id, name, times_played) in top_servers:
104 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for this server">${name}</a></td>
105 <td>${times_played}</td>
116 <p class="note">*Most active stats are from the past 7 days</p>
120 % if len(captimes) > 0:
123 <h3>Best Flag Capture Times</h3>
124 <table class="table table-hover table-condensed">
135 % if c.player_id > 2:
136 <a href="${request.route_url("player_info", id=c.player_id)}"
137 title="Go to the info page for this player">
138 <span class="nick">${c.nick_html_colors|n}</span>
141 <span class="nick">${c.nick_html_colors|n}</span>
145 <a href="${request.route_url("game_info", id=c.game_id)}"
146 title="View the game in which this cap was made">
147 ${round(float(c.fastest_cap.seconds) + (c.fastest_cap.microseconds/1000000.0), 2)}
159 % if len(recent_games) > 0:
162 <h3>Most Recent Games</h3>
163 <table class="table table-hover table-condensed">
174 % for rg in recent_games:
176 <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">View</a></td>
177 <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
178 <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
179 <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
180 <td class="nostretch">
181 % if rg.player_id > 2:
182 <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a>
184 ${rg.nick_html_colors|n}
191 <p><a href="${request.route_url('game_finder', _query={'map_id':gmap.map_id})}">More...</a></p>