1 <%def name="scoreboard(game_type_cd, pgstats)">
2 <table class="scoreboard">
3 ${scoreboard_header(game_type_cd, pgstats[0])}
5 % for pgstat in pgstats:
6 <tr class="${pgstat.team_html_color()}">
8 % if pgstat.player_id > 2:
9 <a href="${request.route_url("player_info", id=pgstat.player_id)}"
10 title="Go to the info page for this player">
11 <span class="nick">${pgstat.nick_html_colors()|n}</span>
14 <span class="nick">${pgstat.nick_html_colors()|n}</span>
17 ${scoreboard_row(game_type_cd, pgstat)}
18 <td>${pgstat.score}</td>
20 % if pgstat.player_id > 1:
21 <a href="${request.route_url("game_info", id=pgstat.game_id)}#accuracy-${pgstat.player_game_stat_id}"
22 title="View weapon accuracy details for this player in this game">
33 ##### SCOREBOARD HEADER #####
34 <%def name="scoreboard_header(game_type_cd, pgstat)">
35 % if game_type_cd == 'dm' or game_type_cd == 'tdm':
48 % if game_type_cd == 'ctf':
49 <thead class="${pgstat.team_html_color()}">
55 <th>Flag Carrier Kills</th>
63 % if game_type_cd == 'ca':
64 <thead class="${pgstat.team_html_color()}">
74 % if game_type_cd == 'freezetag':
75 <thead class="${pgstat.team_html_color()}">
88 ##### SCOREBOARD ROWS #####
89 <%def name="scoreboard_row(game_type_cd, pgstat)">
90 % if game_type_cd == 'dm' or game_type_cd == 'tdm':
91 <td>${pgstat.kills}</td>
92 <td>${pgstat.deaths}</td>
93 <td>${pgstat.suicides}</td>
96 % if game_type_cd == 'ctf':
97 <td>${pgstat.kills}</td>
98 <td>${pgstat.captures}</td>
99 <td>${pgstat.pickups}</td>
100 <td>${pgstat.carrier_frags}</td>
101 <td>${pgstat.returns}</td>
104 % if game_type_cd == 'ca':
105 <td>${pgstat.kills}</td>
108 % if game_type_cd == 'freezetag':
109 <td>${pgstat.kills}</td>
110 <td>${pgstat.deaths}</td>
111 <td>${pgstat.suicides}</td>