]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
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 8bafa0688530f16fa2dfeb2542a085c82db4e886..a6ae731013466116abe8a29461eb4903cdb6b45f 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 953d6b7f92584046c9c672e03e73220a64e00821..1b5dc9b618d041048c6b84380510d56aacbc37c3 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):