From 0b5f3a39ba78031d83e9a2f84088f30d4bd4cfb2 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 23 Oct 2016 10:12:41 -0400 Subject: [PATCH] Add links to the tables, rename the template to be consistent. --- xonstat/__init__.py | 8 ++++---- xonstat/templates/server_info.mako | 6 +++--- ...rver_top_players_index.mako => server_top_active.mako} | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename xonstat/templates/{server_top_players_index.mako => server_top_active.mako} (90%) diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 3f9a43d..2b26e29 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -146,10 +146,10 @@ def main(global_config, **settings): config.add_view(view=ServerTopMaps, route_name="server_top_maps", attr="json", renderer="json", accept="text/json") - config.add_route("server_top_players", "/server/{id:\d+}/topactive") - config.add_view(view=ServerTopPlayers, route_name="server_top_players", attr="html", - renderer="server_top_players_index.mako", accept="text/html") - config.add_view(view=ServerTopPlayers, route_name="server_top_players", attr="json", + config.add_route("server_top_active", "/server/{id:\d+}/topactive") + config.add_view(view=ServerTopPlayers, route_name="server_top_active", attr="html", + renderer="server_top_active.mako", accept="text/html") + config.add_view(view=ServerTopPlayers, route_name="server_top_active", attr="json", renderer="json", accept="text/json") config.add_route("server_top_scorers", "/server/{id:\d+}/topscorers") diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index a6ae731..5893f91 100644 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -45,7 +45,7 @@
-
Top Scoring Players
+
Top Scoring Players
@@ -70,7 +70,7 @@
-
Most Active Players
+
Most Active Players
@@ -95,7 +95,7 @@
-
Most Active Maps
+
Most Active Maps
diff --git a/xonstat/templates/server_top_players_index.mako b/xonstat/templates/server_top_active.mako similarity index 90% rename from xonstat/templates/server_top_players_index.mako rename to xonstat/templates/server_top_active.mako index 344a02e..8613c5d 100644 --- a/xonstat/templates/server_top_players_index.mako +++ b/xonstat/templates/server_top_active.mako @@ -47,7 +47,7 @@ -- 2.39.2