]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/game_info.mako
Clean up the rest of the main index style issues.
[xonotic/xonstat.git] / xonstat / templates / game_info.mako
index 12f8c2306c8d39440ee06f539a8f37f635acb701..3e567e4b901f5c3c9a334b754602e777dcd065f1 100644 (file)
@@ -32,17 +32,19 @@ Game Information
 
 % else:
 <div class="row">
-  <div class="span6">
+  <div class="span10 game-detail">
     <h2>Game Detail</h2>
+    <img width="48" height="48" src="/static/images/icons/48x48/${game.game_type_cd}.png" alt="${game.game_type_cd}"/>
     <p>
       Played: <span class="abstime" data-epoch="${game.epoch()}" title="${game.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${game.fuzzy_date()}</span><br />
-      Game Type: ${game.game_type_cd}<br />
+      Game Type: ${gametype.descr} (${game.game_type_cd})<br />
       Server: <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a><br />
       Map: <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a><br />
       % if game.duration is not None:
         Duration: ${"%s:%02d" % (game.duration.seconds/60, game.duration.seconds%60)}
       % endif
     </p>
+    <span class="clear"></span>
   </div>
 </div>
 
@@ -77,7 +79,7 @@ Game Information
             <span class="nick">${pgs.nick_html_colors()|n}</span>
           % endif
           </td>
-          <td>${round(float(pgs.fastest_cap.seconds) + (pgs.fastest_cap.microseconds/1000000.0), 2)}</td>
+          <td>${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}</td>
         </tr>
       % endfor
       </tbody>
@@ -87,7 +89,7 @@ Game Information
 % endif
 
 
-% if len(pgstats) > 0:
+% if len(pgstats) > 0 and len(pwstats) > 0:
 <div class="row">
   <div class="span12">
     <h3>Accuracy Information</h3>