1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
4 <%block name="navigation">
16 <link href="/static/css/sprites.css" rel="stylesheet">
20 <h2>Sorry, that server wasn't found!</h2>
25 <h2>${server.name}</h2>
28 % if server.port is not None:
29 ${server.ip_addr}:${server.port}
34 Revision: ${server.revision} <br />
35 Added <span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span> <br />
43 <h3>Top Scoring Players</h3>
44 <table class="table table-hover table-condensed">
47 <th style="width:40px;">#</th>
48 <th style="width:150px;">Nick</th>
49 <th style="width:90px;">Score</th>
54 % for (score_player_id, score_nick, score_value) in top_scorers:
57 % if score_player_id != '-':
58 <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>
60 <td class="nostretch" style="max-width:150px;">${score_nick}</td>
62 <td>${score_value}</td>
68 </div> <!-- /span4 -->
72 <h3>Most Active Players</h3>
73 <table class="table table-hover table-condensed">
76 <th style="width:40px;">#</th>
77 <th style="width:150px;">Nick</th>
78 <th style="width:90px;">Playing Time</th>
83 % for (player_id, nick, alivetime) in top_players:
86 % if player_id != '-':
87 <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>
89 <td class="nostretch" style="max-width:150px;">${nick}</td>
97 </div> <!-- /span4 -->
101 <h3>Most Active Maps</h3>
102 <table class="table table-hover table-condensed">
105 <th style="width:40px;">#</th>
106 <th style="width:150px;">Map</th>
107 <th style="width:120px;"># Games</th>
112 % for (map_id, name, count) in top_maps:
116 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
118 <td class="nostretch" style="max-width:150px;">${name}</td>
126 </div> <!-- /span4 -->
131 <p class="note">*Most active stats are from the past 7 days</p>
136 % if len(recent_games) > 0:
139 <h3>Most Recent Games</h2>
140 <table class="table table-hover table-condensed">
151 % for rg in recent_games:
153 <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>
154 <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
155 <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
156 <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>
157 <td class="nostretch">
158 % if rg.player_id > 2:
159 <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>
161 ${rg.nick_html_colors|n}
168 <p><a href="${request.route_url('game_index', _query={'server_id':server.server_id})}">More...</a></p>