From 50060a4235b38ee3256b0446e91ece7fad528039 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 26 Jan 2013 12:12:10 -0500 Subject: [PATCH] Clean up scoreboard and accuracy info for CTS. --- xonstat/templates/game_info.mako | 2 +- xonstat/templates/scoreboard.mako | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) 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} -- 2.39.2