]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add a plus-sign link to the player_game_index.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 25 Jan 2016 21:02:33 +0000 (16:02 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 25 Jan 2016 21:02:33 +0000 (16:02 -0500)
xonstat/templates/player_info.mako
xonstat/views/player.py

index f59bdc289532a100d3aff42e4ccdc8411848f5fc..a0f08951384be0523eaf9938da00472215f6c1b5 100644 (file)
 ##### ACCURACY CHART ####
 <div class="row" id="accuracyChartRow">
   <div class="small-12 columns">
-    <h3>Weapon Accuracy</h3>
+    <h5>Weapon Accuracy</h5>
     <noscript>
       Sorry, but you've disabled JavaScript! It is required to draw the accuracy chart.
     </noscript>
 ##### DAMAGE CHART ####
 <div class="row" id="damageChartRow">
   <div class="small-12 columns">
-    <h3>Weapon Damage</h3>
+    <h5>Weapon Damage</h5>
     <noscript>
       Sorry, but you've disabled JavaScript! It is required to draw the damage chart.
     </noscript>
 % if recent_games:
   <div class="row">
     <div class="small-12 columns">
-      <h3>Recent Games</h3>
+      <h5>Recent Games <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.stripped_nick}"><i class="fa fa-plus-circle"></i></a></h5>
       <table class="table-hover table-condensed">
         <thead>
           <tr>
         % endfor
         </tbody>
       </table>
-
-      % if total_games > 10:
-        <p>
-          <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.stripped_nick}">More...</a>
-        </p>
-      % endif
-
     </div>
   </div>
 % endif
index 26da28f9deb3d29732a40ef063a728aeb6c4314d..faabcba3159bfe9ae26b527a3b766b85da74867a 100644 (file)
@@ -119,6 +119,7 @@ def get_games_played(player_id):
     # sort the resulting list by # of games played
     games_played = sorted(games_played, key=lambda x:x.games)
     games_played.reverse()
+
     return games_played