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' or game_type_cd == 'duel':
38 <th class="nick">Nick</th>
39 <th class="kills">Kills</th>
40 <th class="deaths">Deaths</th>
41 <th class="suicides">Suicides</th>
42 <th class="score">Score</th>
43 <th class="accuracy">Accuracy</th>
48 % if game_type_cd == 'ctf':
49 <thead class="ctf ${pgstat.team_html_color()}">
51 <th class="nick">Nick</th>
52 <th class="kills">Kills</th>
53 <th class="captures">Captures</th>
54 <th class="pickups">Pickups</th>
55 <th class="fck" title="Flag Carrier Kill">FCK</th>
56 <th class="returns">Returns</th>
57 <th class="score">Score</th>
58 <th class="accuracy">Accuracy</th>
63 % if game_type_cd == 'ca':
64 <thead class="ca ${pgstat.team_html_color()}">
66 <th class="nick">Nick</th>
67 <th class="kills">Kills</th>
68 <th class="score">Score</th>
69 <th class="accuracy">Accuracy</th>
74 % if game_type_cd == 'freezetag':
75 <thead class="freezetag ${pgstat.team_html_color()}">
77 <th class="nick">Nick</th>
78 <th class="kills">Kills</th>
79 <th class="deaths">Deaths</th>
80 <th class="suicides">Suicides</th>
81 <th class="score">Score</th>
82 <th class="accuracy">Accuracy</th>
88 ##### SCOREBOARD ROWS #####
89 <%def name="scoreboard_row(game_type_cd, pgstat)">
90 % if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
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>