]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/player_game_index.mako
Updating player hashkey view
[xonotic/xonstat.git] / xonstat / templates / player_game_index.mako
index f02a6b3e1b4f7687d386418c79200f5f1f709f48..18eeeabb98a8151edd65f5e307866f722fe35a14 100644 (file)
@@ -18,7 +18,7 @@ Recent Games
 % if not games:
 <h2>Sorry, no 
     % if game_type_descr:
-    ${game_type_descr}
+    ${game_type_descr.lower()}
     % endif
   games yet for 
   <a href="${request.route_url('player_info', id=player.player_id)}">${player.nick_html_colors()|n}</a>. Get playing!
@@ -44,16 +44,22 @@ Recent Games
   <div class="span12 tabbable">
     <ul class="nav nav-tabs">
       % for game in games_played:
-      <li>
+      % if not game.game_type_cd in ['cq']:
+      <li 
+      % if game.game_type_cd == game_type_cd or (game.game_type_cd == 'overall' and game_type_cd is None):
+      class="active"
+      % endif
+      >
       % if game.game_type_cd == 'overall':
       <a href="${request.route_url("player_game_index", player_id=player.player_id)}" alt="${game.game_type_cd}" title="" data-toggle="none">
       % else:
-      <a href="${request.route_url("player_game_index", player_id=player.player_id, _query={'game_type_cd':game.game_type_cd})}" alt="${game.game_type_cd}" title="" data-toggle="none">
+      <a href="${request.route_url("player_game_index", player_id=player.player_id, _query={'type':game.game_type_cd})}" alt="${game.game_type_cd}" title="" data-toggle="none">
       % endif
         <span class="sprite sprite-${game.game_type_cd}"> </span><br />
         ${game.game_type_cd} <br />
       </a>
       </li>
+      % endif
       % endfor
     </ul>
   </div>