%inherit file="base.mako"/>
<%block name="title">
% if gmap:
Map Information for ${gmap.name} -
% endif
${parent.title()}
%block>
% if gmap is None:
Sorry, that map wasn't found!
% else:
Map Detail - ${gmap.name}
##### RECENT GAMES #####
Recent Games
Game # |
Type |
Time |
Winner |
% for (game, srv, map, pgstat) in recent_games:
% if game != '-':
${game.game_id} |
|
${game.start_dt.strftime('%m/%d/%Y %H:%M')} |
% if pgstat.player_id > 2:
${pgstat.nick_html_colors()|n} |
% else:
${pgstat.nick_html_colors()|n}
% endif
% else:
- |
- |
- |
- |
% endif
% endfor
##### TOP SCORERS #####
Top Scoring Players
# |
Nick |
Score |
<% i = 1 %>
% for (score_player_id, score_nick, score_value) in top_scorers:
${i} |
% if score_player_id != '-':
${score_nick|n} |
% else:
${score_nick} |
% endif
${score_value} |
<% i = i+1 %>
% endfor
##### TOP PLAYERS #####
Most Active Players
# |
Nick |
Playing Time |
<% i = 1 %>
% for (player_id, nick, alivetime) in top_players:
${i} |
% if player_id != '-':
${nick|n} |
% else:
${nick} |
% endif
${alivetime} |
<% i = i+1 %>
% endfor
##### TOP SERVERS #####
Most Active Servers
# |
Name |
Times Played |
<% i = 1 %>
% for (server_id, name, times_played) in top_servers:
${i} |
${name} |
${times_played} |
<% i = i+1 %>
% endfor
% endif