-<%def name="scoreboard(game_type_cd, pgstats, show_elo=False)">
+<%def name="scoreboard(game_type_cd, pgstats, show_elo=False, show_latency=False)">
<table class="table table-bordered table-condensed">
${scoreboard_header(game_type_cd, pgstats[0])}
+${show_latency}
<tbody>
% for pgstat in pgstats:
<tr class="${pgstat.team_html_color()}">
<span class="nick">${pgstat.nick_html_colors()|n}</span>
% endif
</td>
- % if pgstat.avg_latency is not None:
+ % if show_latency and pgstat.avg_latency is not None:
<td>
${int(round(pgstat.avg_latency))}
</td>
- % else:
+ % elif show_latency:
<td></td>
% endif
${scoreboard_row(game_type_cd, pgstat)}
<thead>
<tr>
<th class="nick">Nick</th>
- % if pgstat.avg_latency is not None:
+ % if show_latency:
<th class="ping">Ping</th>
% endif
<th class="kills">Kills</th>
<thead class="ctf ${pgstat.team_html_color()}">
<tr>
<th class="nick">Nick</th>
- % if pgstat.avg_latency is not None:
+ % if show_latency:
<th class="ping">Ping</th>
% endif
<th class="kills">Kills</th>
<thead class="ca ${pgstat.team_html_color()}">
<tr>
<th class="nick">Nick</th>
- % if pgstat.avg_latency is not None:
+ % if show_latency:
<th class="ping">Ping</th>
% endif
<th class="kills">Kills</th>
<thead class="freezetag ${pgstat.team_html_color()}">
<tr>
<th class="nick">Nick</th>
- % if pgstat.avg_latency is not None:
+ % if show_latency:
<th class="ping">Ping</th>
% endif
<th class="kills">Kills</th>