Fixed double negative, maybe the most helpful ever.
authorMalcolm Gill <malcolm.gill@gmail.com>
Mon, 15 Oct 2012 12:27:34 +0000 (23:27 +1100)
committerJan Behrens <zykure@web.de>
Sun, 23 Dec 2012 14:18:33 +0000 (15:18 +0100)
xonstat/templates/player_game_index.mako
xonstat/templates/player_info.mako

index 9b60e3c..2e67e8c 100644 (file)
@@ -61,7 +61,7 @@ Recent Games
                % if round(g.elo_delta,2) > 0:
                <span title="Elo went up by ${round(g.elo_delta,2)}"><i class="icon-arrow-up icon-white"></i></span>
                % elif round(g.elo_delta,2) < 0:
-               <span title="Elo went down by ${round(g.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
+               <span title="Elo went down by ${round(-g.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
                % else:
                <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
                % endif
index 79ef981..2ae8709 100644 (file)
@@ -461,7 +461,7 @@ Player Information
                % if round(gamestat.elo_delta,2) > 0:
                <span title="Elo went up by ${round(gamestat.elo_delta,2)}"><i class="icon-arrow-up icon-white"></i></span>
                % elif round(gamestat.elo_delta,2) < 0:
-               <span title="Elo went down by ${round(gamestat.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
+               <span title="Elo went down by ${round(-gamestat.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
                % else:
                <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
                % endif