1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
4 Main Page - ${parent.title()}
\r
7 ##### DUEL RANKS #####
\r
8 <div class="table_block">
\r
10 <table class="rank-table">
\r
20 % for (player_id, nick, elo) in duel_ranks:
\r
23 % if player_id != '-':
\r
24 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick}</a></td>
\r
29 <td>${round(elo, 3)}</td>
\r
38 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='duel')}" title="See more duel rankings">More...</a></p>
\r
43 ##### CTF RANKS #####
\r
44 <div class="table_block">
\r
46 <table class="rank-table">
\r
56 % for (player_id, nick, elo) in ctf_ranks:
\r
59 % if player_id != '-':
\r
60 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick}</a></td>
\r
65 <td>${round(elo, 3)}</td>
\r
74 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='ctf')}" title="See more CTF rankings">More...</a></p>
\r
79 ##### DM RANKS #####
\r
80 <div class="table_block">
\r
82 <table class="rank-table">
\r
92 % for (player_id, nick, elo) in dm_ranks:
\r
95 % if player_id != '-':
\r
96 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick}</a></td>
\r
101 <td>${round(elo, 3)}</td>
\r
110 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='dm')}" title="See more deathmatch rankings">More...</a></p>
\r
115 ##### TOP PLAYERS #####
\r
116 <div class="table_block">
\r
117 <h2>Most Active Players</h2>
\r
118 <table id="top-players">
\r
123 <th class="play-time">Play Time</th>
\r
128 % for (player_id, nick, alivetime) in top_players:
\r
131 % if player_id != '-':
\r
132 <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>
\r
136 <td class="play-time">${alivetime}</td>
\r
142 <p class="note">*Most active stats are from the past 7 days</p>
\r
145 ##### TOP SERVERS #####
\r
146 <div class="table_block">
\r
147 <h2>Most Active Servers</h2>
\r
148 <table id="top-servers">
\r
158 % for (server_id, name, count) in top_servers:
\r
161 % if server_id != '-':
\r
162 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
\r
174 ##### TOP MAPS #####
\r
175 <div class="table_block">
\r
176 <h2>Most Active Maps</h2>
\r
177 <table id="top-maps">
\r
187 % for (map_id, name, count) in top_maps:
\r
190 % if map_id != '-':
\r
191 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
\r
205 ##### RECENT GAMES #####
\r
206 <div class="table_block">
\r
207 <h2>Recent Games</h2>
\r
208 <table id="recent-games">
\r
220 % for (game, server, map, pgstat) in recent_games:
\r
223 <td><a href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">${game.game_id}</a></td>
\r
224 <td class="gt_icon"><img title="${game.game_type_cd}" src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}" /></td>
\r
225 <td><a href="${request.route_url('server_info', id=server.server_id)}" title="Go to the detail page for this server">${server.name}</a></td>
\r
226 <td><a href="${request.route_url('map_info', id=map.map_id)}" title="Go to the map detail page for this map">${map.name}</a></td>
\r
227 <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>
\r
229 % if pgstat.team == 5:
\r
231 % elif pgstat.team == 14:
\r
233 % elif pgstat.team == 13:
\r
237 % if pgstat.player_id > 2:
\r
238 <a href="${request.route_url('player_info', id=pgstat.player_id)}" title="Go to the player info page for this player">${pgstat.nick_html_colors()|n}</a></td>
\r
240 ${pgstat.nick_html_colors()|n}</td>
\r