Add lifetime value to all server top* HTML views.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 23 Oct 2016 14:02:09 +0000 (10:02 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 23 Oct 2016 14:02:09 +0000 (10:02 -0400)
xonstat/templates/server_top_maps.mako
xonstat/templates/server_top_players_index.mako
xonstat/templates/server_top_scorers.mako
xonstat/views/server.py

index 9fdfe14..93819c2 100644 (file)
@@ -36,7 +36,7 @@
         % endfor
         </tbody>
       </table>
-      <p class="text-center"><small>Note: these figures are from the past 7 days</small>
+      <p class="text-center"><small>Note: these figures are from the past ${lifetime} days</small>
     </div>
   </div>
 
index 3bba6d5..344a02e 100644 (file)
@@ -38,7 +38,7 @@
         % endfor
         </tbody>
       </table>
-      <p class="text-center"><small>Note: these figures are from the past 7 days</small>
+      <p class="text-center"><small>Note: these figures are from the past ${lifetime} days</small>
     </div>
   </div>
 
index ade10d5..0a1f63d 100644 (file)
@@ -36,7 +36,7 @@
         % endfor
         </tbody>
       </table>
-      <p class="text-center"><small>Note: these figures are from the past 7 days</small>
+      <p class="text-center"><small>Note: these figures are from the past ${lifetime} days</small>
     </div>
   </div>
 
index 9cf7d91..6aae2c3 100644 (file)
@@ -117,6 +117,7 @@ class ServerTopMaps(ServerInfoBase):
         return {
             "server_id": self.server_id,
             "top_maps": self.top_maps,
+            "lifetime": self.lifetime,
             "query": query,
         }
 
@@ -190,6 +191,7 @@ class ServerTopScorers(ServerInfoBase):
         return {
             "server_id": self.server_id,
             "top_scorers": top_scorers,
+            "lifetime": self.lifetime,
             "query": query,
         }
 
@@ -262,6 +264,7 @@ class ServerTopPlayers(ServerInfoBase):
         return {
             "server_id": self.server_id,
             "top_players": top_players,
+            "lifetime": self.lifetime,
             "query": query,
         }