]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
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)
committerMalcolm Gill <malcolm.gill@gmail.com>
Mon, 15 Oct 2012 12:27:34 +0000 (23:27 +1100)
xonstat/templates/player_game_index.mako
xonstat/templates/player_info.mako

index 9b60e3cba4034d1d34099e03d40c3fc9c9b91471..2e67e8cbc33b49a2e74e23aa37a28f59de1112a8 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 79ef981d8e8c731cd8550bc1d0623c80aade53d2..2ae8709636b1ec663a1505ba023a870f5f1bf6a8 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