1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
4 <%block name="navigation">
15 <h2>Sorry, that server wasn't found!</h2>
19 <div class="small-12 columns">
20 <h2>${server.name}</h2>
23 % if server.port is not None:
24 ${server.ip_addr}:${server.port}
29 Revision: ${server.revision} <br />
30 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 <div class="small-12 large-4 columns">
38 <h5>Top Scoring Players</h5>
39 <table class="table-hover table-condensed">
42 <th class="small-2">#</th>
43 <th class="small-7">Nick</th>
44 <th class="small-3">Score</th>
49 % for (score_player_id, score_nick, score_value) in top_scorers:
52 % if score_player_id != '-':
53 <td class="no-stretch"><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>
55 <td class="no-stretch">${score_nick}</td>
57 <td>${score_value}</td>
65 <div class="small-12 large-4 columns">
66 <h5>Most Active Players</h5>
67 <table class="table-hover table-condensed">
70 <th class="small-2">#</th>
71 <th class="small-7">Nick</th>
72 <th class="small-3">Time</th>
77 % for (player_id, nick, alivetime) in top_players:
80 % if player_id != '-':
81 <td class="no-stretch"><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
83 <td class="no-stretch">${nick}</td>
93 <div class="small-12 large-4 columns">
94 <h5>Most Active Maps</h5>
95 <table class="table-hover table-condensed">
98 <th class="small-2">#</th>
99 <th class="small-7">Map</th>
100 <th class="small-3">Games</th>
105 % for (map_id, name, count) in top_maps:
109 <td class="no-stretch"><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
111 <td class="no-stretch">${name}</td>
123 <div class="small-12 columns">
124 <small>*Most active stats are from the past 7 days</small>
129 % if len(recent_games) > 0:
131 <div class="small-12 columns">
132 <h5>Most Recent Games</h5>
133 <table class="table-hover table-condensed">
136 <th class="small-1 text-center"></th>
137 <th class="small-1">Type</th>
138 <th class="show-for-medium-up small-3">Map</th>
139 <th class="show-for-large-up small-3">Time</th>
140 <th class="small-3">Winner</th>
144 % for rg in recent_games:
146 <td class="text-center"><a class="tiny button" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">View</a></td>
147 <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
148 <td class="show-for-medium-up"><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>
149 <td class="show-for-large-up"><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>
150 <td class="no-stretch">
151 % if rg.player_id > 2:
152 <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>
154 ${rg.nick_html_colors|n}
161 <p><a href="${request.route_url('game_index', _query={'server_id':server.server_id})}">More...</a></p>