From: Ant Zucaro Date: Mon, 23 May 2011 19:41:06 +0000 (-0400) Subject: Add some comments to game_index.mako so I can see where to add new game types! X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=6feae912666734d74ec30a633efc80f183cfef4a;p=xonotic%2Fxonstat.git Add some comments to game_index.mako so I can see where to add new game types! --- diff --git a/xonstat/templates/game_index.mako b/xonstat/templates/game_index.mako index 883865e..b2bf3ca 100755 --- a/xonstat/templates/game_index.mako +++ b/xonstat/templates/game_index.mako @@ -13,6 +13,8 @@ Game Index - ${parent.title()}

${map.name} on ${server.name} (permalink for this game) + +############################ CTF Game ############################ % if game.game_type_cd == 'ctf': @@ -55,7 +57,89 @@ Game Index - ${parent.title()} % endfor -
Nick
+ + +############################ DM Game ############################ +% if game.game_type_cd == 'dm': + + Nick + Kills + Deaths + Suicides + Score + Accuracy + + +% for pgstat in pgstats[game.game_id]: + + + % if pgstat.player_id > 2: + + ${pgstat.nick_html_colors()} + + % else: + ${pgstat.nick_html_colors()} + % endif + + ${pgstat.kills} + ${pgstat.deaths} + ${pgstat.suicides} + ${pgstat.score} + + % if pgstat.player_id > 1: + + View + + % endif + + +% endfor + + +############################ TDM Game ############################ +% if game.game_type_cd == 'tdm': + + Nick + Team + Kills + Deaths + Suicides + Score + Accuracy + + +% for pgstat in pgstats[game.game_id]: + + + % if pgstat.player_id > 2: + + ${pgstat.nick_html_colors()} + + % else: + ${pgstat.nick_html_colors()} + % endif + + + ${pgstat.kills} + ${pgstat.deaths} + ${pgstat.suicides} + ${pgstat.score} + + % if pgstat.player_id > 1: + + View + + % endif + + +% endfor + +############################ End gametype specific stuff ############################ +% % endif % endfor % endif