From: Ant Zucaro Date: Sun, 12 Apr 2015 01:14:46 +0000 (-0400) Subject: Format duel and ctf scoreboards. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a061dcdad9a9c54c1ef72055eeb517766b58916;p=xonotic%2Fxonstat.git Format duel and ctf scoreboards. --- diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index 3d06f95..35eaca7 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -5,35 +5,34 @@ % for pgstat in pgstats: % if show_latency and pgstat.avg_latency is not None: - + ${int(round(pgstat.avg_latency))} % elif show_latency: - - + - % endif - + % if pgstat.player_id > 2: - - ${pgstat.nick_html_colors()|n} + + ${pgstat.nick_html_colors()|n} % else: - ${pgstat.nick_html_colors()|n} + ${pgstat.nick_html_colors()|n} % endif ${scoreboard_row(game_type_cd, pgstat)} % if game_type_cd != 'cts': - ${pgstat.score} + ${pgstat.score} % endif % if show_elo: % if pgstat.elo_delta is not None: - ${round(pgstat.elo_delta,2)} + ${round(pgstat.elo_delta,2)} % else: - - + - % endif % endif @@ -50,12 +49,12 @@ % if show_latency: Ping % endif - Nick + Nick Kills Deaths Suicides Objectives - Score + Score % if show_elo: Elo Change % endif @@ -67,15 +66,15 @@ % if show_latency: - Ping + Ping % endif - Nick + Nick Kills - Deaths - Suicides - Score + Deaths + Suicides + Score % if show_elo: - Elo Change + Elo Change % endif @@ -117,15 +116,15 @@ % if show_latency: - Ping + Ping % endif - Nick - Kills - Captures - Pickups - FCK - Returns - Score + Nick + Kills + Caps + Pickups + FCK + Returns + Score % if show_elo: Elo Change % endif @@ -254,9 +253,9 @@ % endif % if game_type_cd in 'ca' 'dm' 'duel' 'rune' 'tdm': - ${pgstat.kills} - ${pgstat.deaths} - ${pgstat.suicides} + ${pgstat.kills} + ${pgstat.deaths} + ${pgstat.suicides} % endif % if game_type_cd == 'cq': @@ -277,11 +276,11 @@ % endif % if game_type_cd == 'ctf': - ${pgstat.kills} + ${pgstat.kills} ${pgstat.captures} - ${pgstat.pickups} - ${pgstat.carrier_frags} - ${pgstat.returns} + ${pgstat.pickups} + ${pgstat.carrier_frags} + ${pgstat.returns} % endif % if game_type_cd == 'dom':