]> 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 956d335f96a1f4a1e29588ae61813b25b7087e7c..ad65e8f54324ebdcac39f2a2f9efd24e18760eac 100644 (file)
@@ -2,11 +2,8 @@
 <%namespace name="nav" file="nav.mako" />
 
 <%block name="navigation">
-  % if player.email_addr is not None:
-    ${nav.nav('players', True)}
-  % else:
+    ##### Disable the login button until a replacement is implemented.
     ${nav.nav('players', False)}
-  % endif
 </%block>
 
 <%block name="css">
@@ -48,8 +45,6 @@
       drawAccuracyChart("#accuracyChart", data);
     });
   </script>
-  <script src="https://login.persona.org/include.js" type="text/javascript"></script>
-  <script type="text/javascript">${request.persona_js}</script>
 </%block>
 
 <%block name="title">
         ##### 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
 
-            % if g.game_type_cd in ranks:
-              % if g.game_type_cd == 'overall':
-                Best Rank: 
-                <small>
-                  <a href="${request.route_url('rank_index', game_type_cd=ranks[g.game_type_cd].game_type_cd, _query={'page':(ranks[g.game_type_cd].rank-1)/20+1})}" title="Player rank page for this player">
-                    ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank}
-                  </a>
-                  (${ranks[g.game_type_cd].game_type_cd}, percentile: ${round(ranks[g.game_type_cd].percentile,2)}) 
-                  <br />
-                </small>
-              % else:
-                Rank: 
-                <small>
-                  <a href="${request.route_url('rank_index', game_type_cd=g.game_type_cd, _query={'page':(ranks[g.game_type_cd].rank-1)/20+1})}" title="Player rank page for this player">
-                    ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank}
-                  </a>
-                  (percentile: ${round(ranks[g.game_type_cd].percentile,2)})
-                  <br />
-                </small>
-              % endif
-            % else:
-              <small><br /></small>
-            % endif
-
             % 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>