X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fscoreboard.mako;h=288e271eb2fb3a02610f191e7563cc11089776d4;hp=d0444f2c3f243559982a98a85bb6d79a40fbad66;hb=19ac922f737702914fc4fd63349d6d77b10c6fbf;hpb=d943c3eacece850c6809a8afff30d3182749d0d0
diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako
old mode 100755
new mode 100644
index d0444f2..288e271
--- a/xonstat/templates/scoreboard.mako
+++ b/xonstat/templates/scoreboard.mako
@@ -1,93 +1,81 @@
<%def name="scoreboard(game_type_cd, pgstats)">
-
+
${scoreboard_header(game_type_cd, pgstats[0])}
-
- % for pgstat in pgstats:
-
-
- % if pgstat.player_id > 2:
-
- ${pgstat.nick_html_colors()|n}
-
- % else:
- ${pgstat.nick_html_colors()|n}
- % endif
- |
- ${scoreboard_row(game_type_cd, pgstat)}
- ${pgstat.score} |
-
- % if pgstat.player_id > 1:
-
- View
-
- % endif
- |
-
- % endfor
-
+
+ % for pgstat in pgstats:
+
+
+ % if pgstat.player_id > 2:
+
+ ${pgstat.nick_html_colors()|n}
+
+ % else:
+ ${pgstat.nick_html_colors()|n}
+ % endif
+ |
+ ${scoreboard_row(game_type_cd, pgstat)}
+ ${pgstat.score} |
+
+ % endfor
+
%def>
##### SCOREBOARD HEADER #####
<%def name="scoreboard_header(game_type_cd, pgstat)">
-% if game_type_cd == 'dm' or game_type_cd == 'tdm':
+% if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
-
- Nick |
- Kills |
- Deaths |
- Suicides |
- Score |
- Accuracy |
-
+
+ Nick |
+ Kills |
+ Deaths |
+ Suicides |
+ Score |
+
% endif
% if game_type_cd == 'ctf':
-
- Nick |
- Kills |
- Captures |
- Pickups |
- FCK |
- Returns |
- Score |
- Accuracy |
-
+
+ Nick |
+ Kills |
+ Captures |
+ Pickups |
+ FCK |
+ Returns |
+ Score |
+
% endif
% if game_type_cd == 'ca':
-
- Nick |
- Kills |
- Score |
- Accuracy |
-
+
+ Nick |
+ Kills |
+ Score |
+
% endif
% if game_type_cd == 'freezetag':
-
- Nick |
- Kills |
- Deaths |
- Suicides |
- Score |
- Accuracy |
-
+
+ Nick |
+ Kills |
+ Deaths |
+ Suicides |
+ Score |
+
% endif
%def>
##### SCOREBOARD ROWS #####
<%def name="scoreboard_row(game_type_cd, pgstat)">
-% if game_type_cd == 'dm' or game_type_cd == 'tdm':
+% if game_type_cd == 'dm' or game_type_cd == 'tdm' or game_type_cd == 'duel':
${pgstat.kills} |
${pgstat.deaths} |
${pgstat.suicides} |