1 <%inherit file="base.mako"/>
9 <link href="/static/css/sprites.css" rel="stylesheet">
12 <%block name="hero_unit">
13 <div class="text-center">
14 <img src="/static/css/img/web_background_l2.png" />
15 % if summary_stats is None:
16 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
18 <p id="statline">Tracking <a href="${request.route_url('player_index')}">${'{:2,d}'.format(summary_stats.total_players)}</a> players, <a href="${request.route_url('game_index')}">${'{:2,d}'.format(summary_stats.total_games)}</a> games (${'{:2,d}'.format(summary_stats.duel_games)} duel; ${'{:2,d}'.format(summary_stats.ctf_games)} ctf; ${'{:2,d}'.format(summary_stats.dm_games)} dm) and <a href="${request.route_url('server_index')}">${'{:2,d}'.format(summary_stats.total_servers)}</a> servers since October 2011.</p>
27 <p style="text-align: center;"><i class="icon-white icon-info-sign"> </i> You don't seem to have any ranks yet.</p>
28 </div> <!-- span12 -->
33 % for rs in ranks[:3]:
36 % if rs[0].game_type_cd == 'duel':
38 % elif rs[0].game_type_cd == 'ctf':
40 % elif rs[0].game_type_cd == 'dm':
44 <table class="table table-hover table-condensed">
57 <td><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
58 <td>${round(r.elo, 3)}</td>
64 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings">More...</a></p>
65 </div> <!-- /span4 -->
73 ##### ACTIVE PLAYERS #####
76 <h3>Most Active Players</h3>
77 <table class="table table-hover table-condensed">
82 <th class="play-time">Play Time</th>
87 % for (player_id, nick, alivetime) in top_players:
90 % if player_id != '-':
91 <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>
95 <td class="play-time">${alivetime}</td>
101 <p class="note">*Most active stats are from the past 7 days</p>
102 </div> <!-- /span4 -->
105 ##### ACTIVE SERVERS #####
107 <h3>Most Active Servers</h3>
108 <table class="table table-hover table-condensed">
118 % for (server_id, name, count) in top_servers:
121 % if server_id != '-':
122 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
132 </div> <!-- /span4 -->
135 ##### ACTIVE MAPS #####
137 <h3>Most Active Maps</h3>
138 <table class="table table-hover table-condensed">
148 % for (map_id, name, count) in top_maps:
152 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
162 </div> <!-- /span4 -->
166 ##### RECENT GAMES #####
167 % if len(recent_games) > 0:
170 <h3>Recent Games</h3>
171 <table class="table table-hover table-condensed">
183 % for rg in recent_games:
185 <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>
186 <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
187 <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
188 <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>
189 <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>
191 % if rg.player_id > 2:
192 <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></td>
194 ${rg.nick_html_colors|n}</td>
200 <p><a href="${request.route_url('game_finder')}">More...</a></p>
201 </div> <!-- /span12 -->