1 <%def name="frag_matrix(pgstats, matrix_by_pgstat_id)">
3 ## Displays a frag matrix table, in scoreboardpos order from top to bottom and left to right
7 <th class="text-center"><i class="fa fa-question-circle" title="The rows are the fraggers, the columns are the victims"></i></th>
8 % for pgstat in pgstats:
9 <th><span class="rotated">${pgstat.nick_html_colors()|n}</span></th>
13 % for fragger in pgstats:
15 <td class="bg">${fragger.nick_html_colors()|n}</td>
16 % for victim in pgstats:
17 % if fragger.player_game_stat_id == victim.player_game_stat_id:
21 pgfm = matrix_by_pgstat_id.get(fragger.player_game_stat_id)
23 victim_pgfm = matrix_by_pgstat_id.get(victim.player_game_stat_id)
25 victim_index = str(victim_pgfm.player_index)
31 <td>${pgfm.matrix.get(victim_index, 0)}</td>