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 stat_line is None:
16 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
18 <p id="statline">Tracking ${stat_line|n} since October 2011.</p>
21 % if day_stat_line is not None:
22 <p id="statline">${day_stat_line|n} in the past 24 hours.</p>
31 <p style="text-align: center;"><i class="icon-white icon-info-sign"> </i> You don't seem to have any ranks yet.</p>
32 </div> <!-- span12 -->
37 % for rs in ranks[:4]:
40 % if rs[0].game_type_cd == 'duel':
42 % elif rs[0].game_type_cd == 'ctf':
44 % elif rs[0].game_type_cd == 'dm':
46 % elif rs[0].game_type_cd == 'tdm':
50 <table class="table table-hover table-condensed">
53 <th style="width:40px;">#</th>
54 <th style="width:150px;">Nick</th>
55 <th style="width:60px;">Elo</th>
63 <td class="nostretch" style="max-width:150px;"><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>
64 <td>${int(round(r.elo))}</td>
70 <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>
71 </div> <!-- /span4 -->
79 ##### ACTIVE PLAYERS #####
82 <h3>Most Active Players</h3>
83 <table class="table table-hover table-condensed">
86 <th style="width:40px;">#</th>
87 <th style="width:150px;">Nick</th>
88 <th class="play-time" style="width:90px;">Play Time</th>
93 % for (player_id, nick, alivetime) in top_players:
96 % if player_id != '-':
97 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
99 <td class="nostretch" style="max-width:150px;">${nick|n}</td>
101 <td class="play-time">${alivetime}</td>
107 <p class="note"><a href="${request.route_url('top_players_by_time', page=1)}" title="See more player activity">More...</a></p>
108 </div> <!-- /span4 -->
111 ##### ACTIVE SERVERS #####
113 <h3>Most Active Servers</h3>
114 <table class="table table-hover table-condensed">
117 <th style="width:40px;">#</th>
118 <th style="width:180px;">Server</th>
119 <th style="width:60px;">Games</th>
124 % for (server_id, name, count) in top_servers:
127 % if server_id != '-':
128 <td class="nostretch" style="max-width:180px;"><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
130 <td class="nostretch" style="max-width:180px;">${name}</td>
138 <p class="note"><a href="${request.route_url('top_servers_by_players', page=1)}" title="See more server activity">More...</a></p>
139 </div> <!-- /span4 -->
142 ##### ACTIVE MAPS #####
144 <h3>Most Active Maps</h3>
145 <table class="table table-hover table-condensed">
148 <th style="width:40px;">#</th>
149 <th style="width:180px;">Map</th>
150 <th style="width:60px;">Games</th>
155 % for (map_id, name, count) in top_maps:
159 <td class="nostretch" style="max-width:180px;"><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
161 <td class="nostretch" style="max-width:180px;">${name}</td>
169 <p class="note"><a href="${request.route_url('top_maps_by_times_played', page=1)}" title="See more map activity">More...</a></p>
170 </div> <!-- /span4 -->
173 <p class="note">*Most active stats are from the past 7 days</p>
177 ##### RECENT GAMES #####
178 % if len(recent_games) > 0:
181 <h3>Recent Games</h3>
182 <table class="table table-hover table-condensed">
194 % for rg in recent_games:
196 <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>
197 <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
198 <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>
199 <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>
200 <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>
201 <td class="nostretch">
202 % if rg.player_id > 2:
203 <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>
205 ${rg.nick_html_colors|n}</td>
211 <p><a href="${request.route_url('game_index')}">More...</a></p>
212 </div> <!-- /span12 -->