1 <%def name="scoreboard(game_type_cd, pgstats)">
2 <table class="table table-bordered table-condensed">
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>
25 ##### SCOREBOARD HEADER #####
26 <%def name="scoreboard_header(game_type_cd, pgstat)">
27 % if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
30 <th class="nick">Nick</th>
31 <th class="kills">Kills</th>
32 <th class="deaths">Deaths</th>
33 <th class="suicides">Suicides</th>
34 <th class="score">Score</th>
39 % if game_type_cd == 'ctf':
40 <thead class="ctf ${pgstat.team_html_color()}">
42 <th class="nick">Nick</th>
43 <th class="kills">Kills</th>
44 <th class="captures">Captures</th>
45 <th class="pickups">Pickups</th>
46 <th class="fck" title="Flag Carrier Kill">FCK</th>
47 <th class="returns">Returns</th>
48 <th class="score">Score</th>
53 % if game_type_cd == 'ca':
54 <thead class="ca ${pgstat.team_html_color()}">
56 <th class="nick">Nick</th>
57 <th class="kills">Kills</th>
58 <th class="score">Score</th>
63 % if game_type_cd == 'freezetag':
64 <thead class="freezetag ${pgstat.team_html_color()}">
66 <th class="nick">Nick</th>
67 <th class="kills">Kills</th>
68 <th class="deaths">Deaths</th>
69 <th class="suicides">Suicides</th>
70 <th class="score">Score</th>
76 ##### SCOREBOARD ROWS #####
77 <%def name="scoreboard_row(game_type_cd, pgstat)">
78 % if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
79 <td>${pgstat.kills}</td>
80 <td>${pgstat.deaths}</td>
81 <td>${pgstat.suicides}</td>
84 % if game_type_cd == 'ctf':
85 <td>${pgstat.kills}</td>
86 <td>${pgstat.captures}</td>
87 <td>${pgstat.pickups}</td>
88 <td>${pgstat.carrier_frags}</td>
89 <td>${pgstat.returns}</td>
92 % if game_type_cd == 'ca':
93 <td>${pgstat.kills}</td>
96 % if game_type_cd == 'freezetag':
97 <td>${pgstat.kills}</td>
98 <td>${pgstat.deaths}</td>
99 <td>${pgstat.suicides}</td>