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>
27 IP Address: ${server.ip_addr} <br />
28 Revision: ${server.revision} <br />
29 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 />
37 <h3>Top Scoring Players</h3>
38 <table class="table table-bordered table-condensed">
48 % for (score_player_id, score_nick, score_value) in top_scorers:
51 % if score_player_id != '-':
52 <td><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>
54 <td>${score_nick}</td>
56 <td>${score_value}</td>
62 </div> <!-- /span4 -->
66 <h3>Most Active Players</h3>
67 <table class="table table-bordered table-condensed">
77 % for (player_id, nick, alivetime) in top_players:
80 % if player_id != '-':
81 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
91 </div> <!-- /span4 -->
95 <h3>Most Active Maps</h3>
96 <table class="table table-bordered table-condensed">
106 % for (map_id, name, count) in top_maps:
110 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
120 </div> <!-- /span4 -->
126 % if len(recent_games) > 0:
129 <h3>Most Recent Games</h2>
130 <table class="table table-bordered table-condensed">
141 % for rg in recent_games:
143 <td><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>
144 <td><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}"></span></td>
145 <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>
146 <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>
148 % if rg.player_id > 2:
149 <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>
151 ${rg.nick_html_colors|n}
158 <p><a href="${request.route_url('game_finder', _query={'server_id':server.server_id})}">More...</a></p>