]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Fixed some bugs in player_info page
authorJan D. Behrens <zykure@web.de>
Sun, 5 Aug 2012 11:50:42 +0000 (13:50 +0200)
committerJan D. Behrens <zykure@web.de>
Wed, 8 Aug 2012 10:54:46 +0000 (12:54 +0200)
xonstat/templates/player_info.mako

index 5855157d9381b387946c4346a8faa18971b868d4..d86ceb5e6b55fc23f79c4240fd21555d14b80514 100644 (file)
@@ -259,7 +259,7 @@ Player Information
 </div>
 
 <div class="row">
-  <div class="span10">
+  <div class="span11">
     <p>
        % if total_stats['games_breakdown'].has_key('duel'):
        Duel Stats: <small>
@@ -303,7 +303,7 @@ Player Information
            Win Percentage ${round(float(total_stats['ctf_wins'])/total_stats['games_breakdown']['ctf'] * 100, 2)}%  (${total_stats['ctf_wins']} wins, ${total_stats['games_breakdown']['ctf'] - total_stats['ctf_wins']} losses)
            % endif
 
-           % if total_stats['ctf_pickups'] > 0 and total_stats['tdm_captures'] > 0:
+           % if total_stats['ctf_pickups'] > 0 and total_stats['ctf_caps'] > 0:
            | Cap Ratio ${round(float(total_stats['ctf_caps'])/total_stats['ctf_pickups'], 3)} (${total_stats['ctf_caps']} caps, ${total_stats['ctf_pickups']} pickups, ${total_stats['ctf_returns']} returns, ${total_stats['ctf_fckills']} fckills)
            % endif
        </small><br />