From: Ant Zucaro <azucaro@gmail.com> Date: Fri, 1 Feb 2013 20:49:42 +0000 (-0500) Subject: Add nb support to the scoreboard. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6697e5d14f5d14c04369ca92374dfbe857a2f60d;p=xonotic%2Fxonstat.git Add nb support to the scoreboard. --- diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index 4048955..3bcf31f 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -208,6 +208,23 @@ ${scoreboard_header(game_type_cd, pgstats[0])} </thead> % endif +% if game_type_cd in 'nb' 'nexball': + <thead class="nb ${pgstat.team_html_color()}"> + <tr> + <th class="nick">Nick</th> + % if show_latency: + <th class="ping">Ping</th> + % endif + <th class="goals">Goals</th> + <th class="faults">Faults</th> + <th class="score">Score</th> + % if show_elo: + <th>Elo Change</th> + % endif + </tr> + </thead> +% endif + </%def> ##### SCOREBOARD ROWS ##### @@ -277,4 +294,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} <td>${pgstat.carrier_kills}</td> % endif +% if game_type_cd in 'nb' 'nexball': + <td>${pgstat.captures}</td> + <td>${pgstat.drops}</td> +% endif + </%def>