From e69cf899ced79dce164dda3881653d1d626b7124 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 6 Feb 2016 16:28:13 -0500 Subject: [PATCH] Rename the "top" templates to match their views. --- xonstat/__init__.py | 6 +++--- .../{top_maps_by_times_played.mako => top_maps_index.mako} | 0 .../{top_players_by_time.mako => top_players_index.mako} | 0 .../{top_servers_by_players.mako => top_servers_index.mako} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename xonstat/templates/{top_maps_by_times_played.mako => top_maps_index.mako} (100%) rename xonstat/templates/{top_players_by_time.mako => top_players_index.mako} (100%) rename xonstat/templates/{top_servers_by_players.mako => top_servers_index.mako} (100%) diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 5466efd..ec8bc31 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -102,13 +102,13 @@ def main(global_config, **settings): config.add_view(player_weaponstats_data_json, route_name="player_weaponstats_data_json", renderer="jsonp") config.add_route("top_players_index", "/topactive") - config.add_view(top_players_index, route_name="top_players_index", renderer="top_players_by_time.mako") + config.add_view(top_players_index, route_name="top_players_index", renderer="top_players_index.mako") config.add_route("top_servers_index", "/topservers") - config.add_view(top_servers_index, route_name="top_servers_index", renderer="top_servers_by_players.mako") + config.add_view(top_servers_index, route_name="top_servers_index", renderer="top_servers_index.mako") config.add_route("top_maps_index", "/topmaps") - config.add_view(top_maps_index, route_name="top_maps_index", renderer="top_maps_by_times_played.mako") + config.add_view(top_maps_index, route_name="top_maps_index", renderer="top_maps_index.mako") # GAME ROUTES config.add_route("game_info", "/game/{id:\d+}") diff --git a/xonstat/templates/top_maps_by_times_played.mako b/xonstat/templates/top_maps_index.mako similarity index 100% rename from xonstat/templates/top_maps_by_times_played.mako rename to xonstat/templates/top_maps_index.mako diff --git a/xonstat/templates/top_players_by_time.mako b/xonstat/templates/top_players_index.mako similarity index 100% rename from xonstat/templates/top_players_by_time.mako rename to xonstat/templates/top_players_index.mako diff --git a/xonstat/templates/top_servers_by_players.mako b/xonstat/templates/top_servers_index.mako similarity index 100% rename from xonstat/templates/top_servers_by_players.mako rename to xonstat/templates/top_servers_index.mako -- 2.39.2