From 6feae912666734d74ec30a633efc80f183cfef4a Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 23 May 2011 15:41:06 -0400 Subject: [PATCH] Add some comments to game_index.mako so I can see where to add new game types! --- xonstat/templates/game_index.mako | 86 ++++++++++++++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) 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 -- 2.39.2