1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
4 Main Page - ${parent.title()}
\r
7 <div id="sidebar" class="leaderboard left">
\r
9 ##### TOP PLAYERS #####
\r
10 <h2>Top Players</h2>
\r
11 <table id="top-players">
\r
21 % for (player_id, nick, score) in top_players:
\r
24 % if player_id != '-':
\r
25 <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
36 ##### TOP SERVERS #####
\r
37 <h2>Top Servers</h2>
\r
38 <table id="top-servers">
\r
48 % for (server_id, name, count) in top_servers:
\r
51 % if server_id != '-':
\r
52 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
\r
63 ##### TOP MAPS #####
\r
65 <table id="top-maps">
\r
70 <th>Times Played</th>
\r
75 % for (map_id, name, count) in top_maps:
\r
79 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
\r
89 </div> <!-- END LEADERBOARD -->
\r
91 <div id="main" class="right">
\r
93 ##### RECENT GAMES #####
\r
94 <h2>Recent Games</h2>
\r
95 <table id="recent-games">
\r
107 % for (game, server, map) in recent_games:
\r
110 <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
111 <td>${game.game_type_cd}</td>
\r
112 <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
113 <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
114 <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>
\r
115 <td>${game.winner}</td>
\r
130 </div> <!-- END RECENT GAMES -->
\r