]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/player_info.mako
Don't track win ratios for DM and CTS.
[xonotic/xonstat.git] / xonstat / templates / player_info.mako
index e24a59b86a518401c3f088563a9722a95df34e15..ad65e8f54324ebdcac39f2a2f9efd24e18760eac 100644 (file)
         ##### RIGHT PANE #####
         <div class="small-12 medium-6 columns">
           <p>
-            Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+            % if g.win_pct is not None:
+                Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+            % endif
 
             % if g.game_type_cd in overall_stats:
               % if overall_stats[g.game_type_cd].k_d_ratio is not None:
               <small><br /></small>
             % endif
 
-            <small><br /></small>
-
             % if g.game_type_cd == 'ctf':
               % if overall_stats[g.game_type_cd].cap_ratio is not None:
                 Cap Ratio: <small>${round(overall_stats[g.game_type_cd].cap_ratio,2)} (${overall_stats[g.game_type_cd].total_captures} captures, ${overall_stats[g.game_type_cd].total_pickups} pickups) <br /></small>