1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
4 <%block name="navigation">
14 <%def name="empty_rows(list, max_empty_rows)">
15 % for i in range(max_empty_rows - len(list)):
25 <h2>Sorry, that server wasn't found!</h2>
29 <div class="small-12 columns">
30 <h2>${server.name}</h2>
33 % if server.port is not None:
34 ${server.ip_addr}:${server.port}
39 Revision: ${server.revision} <br />
40 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 />
47 <div class="small-12 large-4 columns">
48 <h5>Top Scoring Players <a href="${request.route_url('server_top_scorers', id=server.server_id)}" title="See more top scoring players for this server"><i class="fa fa-plus-circle"></i></a></h5>
49 <table class="table-hover table-condensed">
52 <th class="small-2">#</th>
53 <th class="small-7">Nick</th>
54 <th class="small-3">Score</th>
58 % for ts in top_scorers:
61 <td class="no-stretch"><a href="${request.route_url('player_info', id=ts.player_id)}" title="Go to the player info page for this player">${ts.nick|n}</a></td>
62 <td>${ts.total_score}</td>
66 ${empty_rows(top_scorers, 10)}
72 <div class="small-12 large-4 columns">
73 <h5>Most Active Players <a href="${request.route_url('server_top_active', id=server.server_id)}" title="See more active players for this server"><i class="fa fa-plus-circle"></i></a></h5>
74 <table class="table-hover table-condensed">
77 <th class="small-2">#</th>
78 <th class="small-7">Nick</th>
79 <th class="small-3">Time</th>
83 % for tp in top_players:
86 <td class="no-stretch"><a href="${request.route_url('player_info', id=tp.player_id)}" title="Go to the player info page for this player">${tp.nick|n}</a></td>
87 <td>${tp.alivetime}</td>
91 ${empty_rows(top_players, 10)}
97 <div class="small-12 large-4 columns">
98 <h5>Most Active Maps <a href="${request.route_url('server_top_maps', id=server.server_id)}" title="See more top maps for this server"><i class="fa fa-plus-circle"></i></a></h5>
99 <table class="table-hover table-condensed">
102 <th class="small-2">#</th>
103 <th class="small-7">Map</th>
104 <th class="small-3">Games</th>
108 % for tm in top_maps:
111 <td class="no-stretch"><a href="${request.route_url('map_info', id=tm.map_id)}" title="Go to the map info page for ${tm.name}">${tm.name}</a></td>
112 <td>${tm.times_played}</td>
116 ${empty_rows(top_maps, 10)}
124 <div class="small-12 columns">
125 <small>*Most active stats are from the past ${lifetime} days</small>
130 % if len(recent_games) > 0:
132 <div class="small-12 columns">
133 <h5>Most Recent Games <a href="${request.route_url('game_index', _query={'server_id':server.server_id})}"><i class="fa fa-plus-circle"></i></a></h5>
134 <table class="table-hover table-condensed">
137 <th class="small-1 text-center"></th>
138 <th class="small-1">Type</th>
139 <th class="show-for-medium-up small-3">Map</th>
140 <th class="show-for-large-up small-3">Time</th>
141 <th class="small-3">Winner</th>
145 % for rg in recent_games:
147 <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>
148 <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
149 <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>
150 <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>
151 <td class="no-stretch">
152 % if rg.player_id > 2:
153 <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>
155 ${rg.nick_html_colors|n}