From: Ant Zucaro Date: Sat, 26 Jan 2013 17:12:10 +0000 (-0500) Subject: Clean up scoreboard and accuracy info for CTS. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50060a4235b38ee3256b0446e91ece7fad528039;p=xonotic%2Fxonstat.git Clean up scoreboard and accuracy info for CTS. --- diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 12f8c23..b067cfe 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -87,7 +87,7 @@ Game Information % endif -% if len(pgstats) > 0: +% if len(pgstats) > 0 and len(pwstats) > 0:

Accuracy Information

diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index c92f109..d5d04b3 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -22,7 +22,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif ${scoreboard_row(game_type_cd, pgstat)} + % if game_type_cd != 'cts': ${pgstat.score} + % endif % if show_elo: % if pgstat.elo_delta is not None: ${round(pgstat.elo_delta,2)} @@ -94,6 +96,19 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif +% if game_type_cd == 'cts': + + + Nick + % if show_latency: + Ping + % endif + Fastest Lap + Deaths + + +% endif + % if game_type_cd == 'ctf': @@ -155,6 +170,11 @@ ${scoreboard_header(game_type_cd, pgstats[0])} ${pgstat.drops} % endif +% if game_type_cd == 'cts': + ${pgstat.fastest} + ${pgstat.deaths} +% endif + % if game_type_cd == 'ctf': ${pgstat.kills} ${pgstat.captures}