Tidy up a few things
authorJan Behrens <zykure@web.de>
Fri, 19 Apr 2013 16:45:01 +0000 (18:45 +0200)
committerJan Behrens <zykure@web.de>
Fri, 19 Apr 2013 16:45:01 +0000 (18:45 +0200)
xonstat/templates/game_index.mako
xonstat/templates/main_index.mako
xonstat/templates/map_info.mako
xonstat/templates/player_captimes.mako
xonstat/templates/server_info.mako

index ceca3e3..dd477d0 100644 (file)
@@ -59,7 +59,7 @@ Game Index
           <ul class="dropdown-menu nav-tabs">
             % for gt in ('ca','kh','ft','lms','as','dom','nb','cts','rc'):
             <li>
-            <a href="${request.route_url("game_index_filtered", game_type_cd=gt)}" alt="${gt}" title="" data-toggle="none">
+            <a href="${request.route_url("game_index", game_type_cd=gt)}" alt="${gt}" title="" data-toggle="none">
               <span class="sprite sprite-${gt}"> </span><br/>
               ${gt}
             </a>
index 5254dcc..a35104e 100644 (file)
@@ -47,7 +47,7 @@ Leaderboard
         <thead>
           <tr>
             <th style="width:40px;">#</th>
-            <th style="width:120px;">Nick</th>
+            <th style="width:150px;">Nick</th>
             <th style="width:60px;">Elo</th>
           </tr>
         </thead>
@@ -56,7 +56,7 @@ Leaderboard
         % for r in rs:
         <tr>
           <td>${i}</td>
-          <td class="nostretch" style="max-width:120px;"><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
+          <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
           <td>${int(round(r.elo))}</td>
         </tr>
         <% i = i+1 %>
@@ -191,7 +191,7 @@ Leaderboard
           <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
-          <td class="player-nick">
+          <td class="nostretch">
             % if rg.player_id > 2:
             <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a></td>
             % else:
index 1c817ea..6daae2e 100644 (file)
@@ -177,7 +177,7 @@ ${parent.title()}
           <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
           <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
-          <td>
+          <td class="nostretch">
             % if rg.player_id > 2:
             <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a>
             % else:
index fdb9462..a9872e4 100644 (file)
@@ -6,13 +6,17 @@ Player captimes
 </%block>
 
 % if len(captimes) == 0:
-  <h2>Sorry, no caps yet. Get playing!</h2>
+<h2>Sorry, no caps yet. Get playing!</h2>
+<p><a href="${player_url}">Back to player info page</a></p>
 % else:
 
 <div class="row">
   <div class="span12">
-    <h3>Fastest Flag Captures by ${player.nick_html_colors()|n}</h3>
-    <p><a href="${player_url}">Back to player info page</a></p>
+    <h3>Fastest Flag Captures by
+      <a href="${request.route_url('player_info', id=player.player_id)}">
+        ${player.nick_html_colors()|n}
+      </a>
+    </h3>
  
     <table class="table table-hover table-condensed">
       <thead>
index 3bb1adc..c85e256 100644 (file)
@@ -59,7 +59,6 @@ Server Information
         % endfor
         </tbody>
       </table>
-      <p class="note">*Most active stats are from the past 7 days</p>
   </div> <!-- /span4 -->
 
 
@@ -121,7 +120,11 @@ Server Information
   </div> <!-- /span4 -->
 
 </div> <!-- /row -->
-
+<div class="row">
+  <div class="span12">
+    <p class="note">*Most active stats are from the past 7 days</p>
+  </div>
+</div>
 
 
 % if len(recent_games) > 0:
@@ -145,7 +148,7 @@ Server Information
           <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
           <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
-          <td>
+          <td class="nostretch">
             % if rg.player_id > 2:
             <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a>
             % else: