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>
19 % if pgstat.elo_delta == "0.00":
22 <td>${pgstat.elo_delta}</td>
30 ##### SCOREBOARD HEADER #####
31 <%def name="scoreboard_header(game_type_cd, pgstat)">
32 % if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
35 <th class="nick">Nick</th>
36 <th class="kills">Kills</th>
37 <th class="deaths">Deaths</th>
38 <th class="suicides">Suicides</th>
39 <th class="score">Score</th>
40 <th class="points">Points</th>
45 % if game_type_cd == 'ctf':
46 <thead class="ctf ${pgstat.team_html_color()}">
48 <th class="nick">Nick</th>
49 <th class="kills">Kills</th>
50 <th class="captures">Captures</th>
51 <th class="pickups">Pickups</th>
52 <th class="fck" title="Flag Carrier Kill">FCK</th>
53 <th class="returns">Returns</th>
54 <th class="score">Score</th>
55 <th class="points">Points</th>
60 % if game_type_cd == 'ca':
61 <thead class="ca ${pgstat.team_html_color()}">
63 <th class="nick">Nick</th>
64 <th class="kills">Kills</th>
65 <th class="score">Score</th>
70 % if game_type_cd == 'freezetag':
71 <thead class="freezetag ${pgstat.team_html_color()}">
73 <th class="nick">Nick</th>
74 <th class="kills">Kills</th>
75 <th class="deaths">Deaths</th>
76 <th class="suicides">Suicides</th>
77 <th class="score">Score</th>
83 ##### SCOREBOARD ROWS #####
84 <%def name="scoreboard_row(game_type_cd, pgstat)">
85 % if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
86 <td>${pgstat.kills}</td>
87 <td>${pgstat.deaths}</td>
88 <td>${pgstat.suicides}</td>
91 % if game_type_cd == 'ctf':
92 <td>${pgstat.kills}</td>
93 <td>${pgstat.captures}</td>
94 <td>${pgstat.pickups}</td>
95 <td>${pgstat.carrier_frags}</td>
96 <td>${pgstat.returns}</td>
99 % if game_type_cd == 'ca':
100 <td>${pgstat.kills}</td>
103 % if game_type_cd == 'freezetag':
104 <td>${pgstat.kills}</td>
105 <td>${pgstat.deaths}</td>
106 <td>${pgstat.suicides}</td>