1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
4 Main Page - ${parent.title()}
\r
8 ##### RECENT GAMES #####
\r
9 <h2>Recent Games</h2>
\r
10 <table id="recent-games">
\r
22 % for (game, server, map, pgstat) in recent_games:
\r
25 <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
26 <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
27 <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
28 <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
29 <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>
\r
31 % if pgstat.team == 5:
\r
33 % elif pgstat.team == 14:
\r
35 % elif pgstat.team == 13:
\r
39 % if pgstat.player_id > 2:
\r
40 <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
42 ${pgstat.nick_html_colors()|n}</td>
\r
59 ##### TOP PLAYERS #####
\r
60 <div class="table_block">
\r
61 <h2>Most Active Players</h2>
\r
62 <table id="top-players">
\r
67 <th>Playing Time</th>
\r
72 % for (player_id, nick, alivetime) in top_players:
\r
75 % if player_id != '-':
\r
76 <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
80 <td>${alivetime}</td>
\r
88 ##### TOP SERVERS #####
\r
89 <div class="table_block">
\r
90 <h2>Most Active Servers</h2>
\r
91 <table id="top-servers">
\r
101 % for (server_id, name, count) in top_servers:
\r
104 % if server_id != '-':
\r
105 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
\r
117 ##### TOP MAPS #####
\r
118 <div class="table_block">
\r
119 <h2>Most Active Maps</h2>
\r
120 <table id="top-maps">
\r
130 % for (map_id, name, count) in top_maps:
\r
133 % if map_id != '-':
\r
134 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
\r