]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Make recent games more bullet-resistant :)
authorAnt Zucaro <azucaro@gmail.com>
Sun, 25 Nov 2012 15:37:01 +0000 (10:37 -0500)
committerJan Behrens <zykure@web.de>
Sun, 23 Dec 2012 14:18:34 +0000 (15:18 +0100)
xonstat/templates/server_info.mako
xonstat/views/server.py

index 70f005357e38ab766dd21eeaa9beb261d4e7b916..06d33bfc0924af2a7b514ebbaef3ed13011af8e2 100644 (file)
@@ -123,6 +123,7 @@ Server Information
 
 
 
+% if len(recent_games) > 0:
 <div class="row">
   <div class="span12">
     <h3>Most Recent Games</h2>
@@ -156,6 +157,7 @@ Server Information
     </table>
   </div>
 </div>
+% endif
 
 
 % endif
index b3de5d1e2ab607163aeedb93c8fc9e2eb35c77eb..d25e8e89a1d42e140df48c1dd15b6b06eecb694f 100644 (file)
@@ -138,9 +138,6 @@ def server_info(request):
     for i in range(leaderboard_count-len(serverinfo_data['top_players'])):
         serverinfo_data['top_players'].append(('-', '-', '-'))
 
-    for i in range(recent_games_count-len(serverinfo_data['recent_games'])):
-        serverinfo_data['recent_games'].append(('-', '-', '-', '-'))
-
     return serverinfo_data