X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fscoreboard.mako;h=5064bb1244a05d61883a02d484ee78d5a50d575b;hb=321dc9df9b227a93ccd40ffee1997b7da4f60186;hp=1ce98e8908ba391e55c855372efc4969175dd3ff;hpb=633e988769491cbf1bcea16bb8e9fe571e86e1c7;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index 1ce98e8..5064bb1 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -1,4 +1,4 @@ -<%def name="scoreboard(game_type_cd, pgstats)"> +<%def name="scoreboard(game_type_cd, pgstats, show_elo=False)"> ${scoreboard_header(game_type_cd, pgstats[0])} @@ -19,8 +19,15 @@ ${scoreboard_header(game_type_cd, pgstats[0])} ${int(round(pgstat.avg_latency))} % endif - ${scoreboard_row(game_type_cd, pgstat)} + ${scoreboard_row(game_type_cd, pgstat)} + % if show_elo: + % if pgstat.elo_delta is not None: + + % else: + + % endif + % endif % endfor @@ -40,6 +47,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} + % if show_elo: + + % endif % endif @@ -57,6 +67,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} + % if show_elo: + + % endif % endif @@ -70,6 +83,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif + % if show_elo: + + % endif % endif @@ -85,6 +101,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])} + % if show_elo: + + % endif % endif
${pgstat.score}${round(pgstat.elo_delta,2)}-
Deaths Suicides ScoreElo Change
FCK Returns ScoreElo Change
Kills ScoreElo Change
Deaths Suicides ScoreElo Change