Show the correct lifetime information in the template.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 23 Oct 2016 11:51:05 +0000 (07:51 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 23 Oct 2016 11:51:05 +0000 (07:51 -0400)
xonstat/templates/server_info.mako
xonstat/views/server.py

index 8bafa06..a6ae731 100644 (file)
 
   <div class="row">
     <div class="small-12 columns">
-      <small>*Most active stats are from the past 7 days</small>
+      <small>*Most active stats are from the past ${lifetime} days</small>
     </div>
   </div>
 
index 953d6b7..1b5dc9b 100644 (file)
@@ -277,6 +277,7 @@ class ServerInfo(ServerInfoBase):
             'top_scorers': self.top_scorers_v.html(),
             'top_maps': self.top_maps_v.html(),
             'recent_games': self.recent_games,
+            'lifetime': self.lifetime,
         }
 
     def json(self):