1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
4 Main Page - ${parent.title()}
\r
7 <div id="leaderboard">
\r
9 ##### TOP PLAYERS #####
\r
10 <table id="top-players" border="1">
\r
12 <th colspan="3">Top Players</th>
\r
20 % for (player_id, nick, score) in top_players:
\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|n}</a></td>
\r
34 ##### TOP SERVERS #####
\r
35 <table id="top-servers" border="1">
\r
37 <th colspan="3">Top Servers</th>
\r
45 % for (server_id, name, count) in top_servers:
\r
48 % if server_id != '-':
\r
49 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
\r
59 ##### TOP MAPS #####
\r
60 <table id="top-maps" border="1">
\r
62 <th colspan="3">Top Maps</th>
\r
67 <th>Times Played</th>
\r
70 % for (map_id, name, count) in top_maps:
\r
74 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
\r
83 </div> <!-- END LEADERBOARD -->
\r
85 <div id="recent-games">
\r
87 ##### RECENT GAMES #####
\r
88 <table id="recent-games-table" border="1">
\r
90 <th colspan="5">Recent Games</th>
\r
100 % for (game, server, map) in recent_games:
\r
103 <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
104 <td>${game.game_type_cd}</td>
\r
105 <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
106 <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
107 <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>
\r
108 <td>${game.winner}</td>
\r
122 </div> <!-- END RECENT GAMES -->
\r