1 <%def name="scoreboard(game_type_cd, pgstats)">
2 <table class="scoreboard" border="1" cellpadding="3">
3 ${scoreboard_header(game_type_cd, pgstats[0])}
4 % for pgstat in pgstats:
5 <tr style="background-color:${pgstat.team_html_color()}">
7 % if pgstat.player_id > 2:
8 <a href="${request.route_url("player_info", id=pgstat.player_id)}"
9 title="Go to the info page for this player">
10 <span class="nick">${pgstat.nick_html_colors()|n}</span>
13 <span class="nick">${pgstat.nick_html_colors()|n}</span>
16 ${scoreboard_row(game_type_cd, pgstat)}
17 <td><span style="color:#FFFF00;">${pgstat.score}</span></td>
19 % if pgstat.player_id > 1:
20 <a href="${request.route_url("game_info", id=pgstat.game_id)}#accuracy-${pgstat.player_game_stat_id}"
21 title="View weapon accuracy details for this player in this game">
31 ##### SCOREBOARD HEADER #####
32 <%def name="scoreboard_header(game_type_cd, pgstat)">
33 % if game_type_cd == 'dm' or game_type_cd == 'tdm':
34 <tr class="table-header" style="color:black;}">
44 % if game_type_cd == 'ctf':
45 <tr class="table-header" style="color:${pgstat.team_html_color()}">
50 <th>Flag Carrier Kills</th>
57 % if game_type_cd == 'ca':
58 <tr class="table-header" style="color:${pgstat.team_html_color()}">
66 % if game_type_cd == 'freezetag':
67 <tr style="color:${pgstat.team_html_color()}">
78 ##### SCOREBOARD ROWS #####
79 <%def name="scoreboard_row(game_type_cd, pgstat)">
80 % if game_type_cd == 'dm' or game_type_cd == 'tdm':
81 <td>${pgstat.kills}</td>
82 <td>${pgstat.deaths}</td>
83 <td>${pgstat.suicides}</td>
86 % if game_type_cd == 'ctf':
87 <td>${pgstat.kills}</td>
88 <td>${pgstat.captures}</td>
89 <td>${pgstat.pickups}</td>
90 <td>${pgstat.carrier_frags}</td>
91 <td>${pgstat.returns}</td>
94 % if game_type_cd == 'ca':
95 <td>${pgstat.kills}</td>
98 % if game_type_cd == 'freezetag':
99 <td>${pgstat.kills}</td>
100 <td>${pgstat.deaths}</td>
101 <td>${pgstat.suicides}</td>