]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Show won/lost as well as rank in the recent games table in the player_info template.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 17 Oct 2011 10:38:03 +0000 (06:38 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 17 Oct 2011 10:38:03 +0000 (06:38 -0400)
xonstat/templates/player_info.mako

index 538f91c619381d29ab39891db73e1f3a8882806e..f4a718d51f9021695144b84347ac190e33a30fab 100755 (executable)
@@ -106,9 +106,11 @@ ${accuracy(weapon_stats)}
                   <td>${map.name}</td>
                   <td>
                   % if gamestat.team != None and gamestat.team == game.winner:
-                  Win
-                  % else:
-                  Loss
+                  Won (#${gamestat.rank})
+                  % elif gamestat.team != None and gamestat.team != game.winner:
+                  Lost (#${gamestat.rank})
+           % else:
+           #${gamestat.rank}
                   % endif
                   </td>
                   <td>${game.fuzzy_date()}</td>