X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_game_index.mako;h=1953cb28dfecc2c64a42bac438cfcf30c8f4cec9;hb=93679dbb370249e3ea13b633281e7fa81a2c650c;hp=2e67e8cbc33b49a2e74e23aa37a28f59de1112a8;hpb=b97adb4e1042d00c1e965953d8955f9669063180;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_game_index.mako b/xonstat/templates/player_game_index.mako index 2e67e8c..1953cb2 100644 --- a/xonstat/templates/player_game_index.mako +++ b/xonstat/templates/player_game_index.mako @@ -12,64 +12,68 @@ Recent Games % if not games:
- | Type | -Server | -Map | -Result | -Played | -Elo | ++ | Type | +Server | +Map | +Result | +Played | +Elo |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
view | -- | ${g.server_name} | -${g.map_name} | -- % if g.team != None: - % if g.team == g.winner: - Win - % else: - Loss - % endif + % for rg in games.items: + | |||||||||
view | ++ | ${rg.server_name} | +${rg.map_name} | ++ % if rg.team != None: + % if rg.team == rg.winner: + Win + % else: + Loss + % endif % else: - % if g.rank == 1: - Win + % if rg.rank == 1: + Win + % else: + Loss (#${rg.rank}) + % endif + % endif + | +${rg.fuzzy_date} | ++ + % if rg.elo_delta is not None: + % if round(rg.elo_delta,2) > 0: + + % elif round(rg.elo_delta,2) < 0: + % else: - Loss (#${g.rank}) + % endif - % endif - | -${g.game_fuzzy} | -- % if g.elo_delta is not None: - % if round(g.elo_delta,2) > 0: - - % elif round(g.elo_delta,2) < 0: - - % else: - - % endif - % else: - - % endif - | -