<th>Nick</th>\r
<th>Score</th>\r
</tr>\r
+<% i = 1 %>\r
% for (player_id, nick, score) in top_players:\r
<tr>\r
+ <td>${i}</td>\r
% if player_id != '-':\r
- <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${player_id}</a></td>\r
+ <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
% else:\r
- <td>${player_id}</td>\r
- % endif\r
<td>${nick}</td>\r
+ % endif\r
<td>${score}</td>\r
</tr>\r
+ <% i = i+1 %>\r
% endfor\r
</table>\r
\r
<th>Server</th>\r
<th>Games</th>\r
</tr>\r
+<% i = 1 %>\r
% for (server_id, name, count) in top_servers:\r
<tr>\r
+ <td>${i}</td>\r
% if server_id != '-':\r
- <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for this server">${server_id}</a></td>\r
+ <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>\r
% else:\r
- <td>${server_id}</td>\r
- % endif\r
<td>${name}</td>\r
+ % endif\r
<td>${count}</td>\r
</tr>\r
+ <% i = i+1 %>\r
% endfor\r
</table>\r
\r
<th>Map</th>\r
<th>Times Played</th>\r
</tr>\r
+<% i = 1 %>\r
% for (map_id, name, count) in top_maps:\r
<tr>\r
+ <td>${i}</td>\r
% if map_id != '-':\r
- <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for this map">${map_id}</a></td>\r
+ <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>\r
% else:\r
- <td>${map_id}</td>\r
- % endif\r
<td>${name}</td>\r
+ % endif\r
<td>${count}</td>\r
</tr>\r
+ <% i = i+1 %>\r
% endfor\r
</table>\r
</div> <!-- END LEADERBOARD -->\r
</tr>\r
<tr>\r
<th>Game #</th>\r
+ <th>Type</th>\r
<th>Server</th>\r
<th>Map</th>\r
<th>Time</th>\r
% for (game, server, map) in recent_games:\r
% if game != '-':\r
<tr>\r
- <td>${game.game_id}</td>\r
- <td>${server.name}</td>\r
- <td>${map.name}</td>\r
- <td>${game.start_dt}</td>\r
+ <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
+ <td>${game.game_type_cd}</td>\r
+ <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
+ <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
+ <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>\r
<td>${game.winner}</td>\r
</tr>\r
% else:\r
<td>-</td>\r
<td>-</td>\r
<td>-</td>\r
+ <td>-</td>\r
</tr>\r
% endif\r
% endfor\r