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>
24 <div class="small-12 columns">
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 />
42 <div class="small-12 large-4 columns">
43 <h5>Top Scoring Players</h5>
44 <table class="table-hover table-condensed">
47 <th style="small-2">#</th>
48 <th style="small-7">Nick</th>
49 <th style="small-3">Score</th>
54 % for (score_player_id, score_nick, score_value) in top_scorers:
57 % if score_player_id != '-':
58 <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>
60 <td class="no-stretch">${score_nick}</td>
62 <td>${score_value}</td>
70 <div class="small-12 large-4 columns">
71 <h5>Most Active Players</h5>
72 <table class="table-hover table-condensed">
75 <th style="small-2">#</th>
76 <th style="small-7">Nick</th>
77 <th style="small-3">Play Time</th>
82 % for (player_id, nick, alivetime) in top_players:
85 % if player_id != '-':
86 <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>
88 <td class="no-stretch">${nick}</td>
98 <div class="small-12 large-4 columns">
99 <h5>Most Active Maps</h5>
100 <table class="table-hover table-condensed">
103 <th style="small-2">#</th>
104 <th style="small-7">Map</th>
105 <th style="small-3"># Games</th>
110 % for (map_id, name, count) in top_maps:
114 <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>
116 <td class="no-stretch">${name}</td>
128 <div class="small-12 columns">
129 <small>*Most active stats are from the past 7 days</small>
134 % if len(recent_games) > 0:
136 <div class="small-12 columns">
137 <h5>Most Recent Games</h5>
138 <table class="table-hover table-condensed">
141 <th class="small-1 text-center"></th>
142 <th class="small-1">Type</th>
143 <th class="show-for-medium-up small-3">Map</th>
144 <th class="show-for-large-up small-3">Time</th>
145 <th class="small-3">Winner</th>
149 % for rg in recent_games:
151 <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>
152 <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
153 <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>
154 <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>
155 <td class="no-stretch">
156 % if rg.player_id > 2:
157 <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>
159 ${rg.nick_html_colors|n}
166 <p><a href="${request.route_url('game_index', _query={'server_id':server.server_id})}">More...</a></p>