]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/main_index.mako
Integrate the new helpers everywhere.
[xonotic/xonstat.git] / xonstat / templates / main_index.mako
index a31aef98b515b2d331f66335099347c05d4908ab..e26bddf8b73a712fe2718ffb130a69ba08bb1d5c 100644 (file)
@@ -208,6 +208,7 @@ Leaderboard
   </div> <!-- /span4 -->
 </div> <!-- /row -->
 
+% if len(recent_games) > 0:
 <div class="row">
   <div class="span12">
     <h3>Recent Games</h3>
@@ -230,7 +231,7 @@ Leaderboard
           <td><span class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_cd}"></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><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.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></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>
             % 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>
@@ -243,3 +244,4 @@ Leaderboard
     </table>
   </div> <!-- /span12 -->
 </div> <!-- /row -->
+% endif