From bb11d77d2308f0ae585e93e169ebf087dfd23ae6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Dec 2012 12:23:00 +0100 Subject: [PATCH] Remove "advanced" page. --- data/templates/advanced.html | 65 ------------------------------------ data/templates/base.html | 4 --- web/__init__.py | 3 -- web/handlers.py | 5 --- 4 files changed, 77 deletions(-) delete mode 100644 data/templates/advanced.html diff --git a/data/templates/advanced.html b/data/templates/advanced.html deleted file mode 100644 index 795730d..0000000 --- a/data/templates/advanced.html +++ /dev/null @@ -1,65 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ _("Advanced options") }}{% end block %} - -{% block body %} -

{{ _("Advanced options") }}

-

- {{ _("On this page you will find advanced things to do.") }} -

- -

{{ _("Statistics") }}

-

- {{ _("See a lot of interesting statistics from the build service.") }} -

- - -

{{ _("Users") }}

-

- {{ _("See a list of all users.") }} -

- - -

{{ _("Mirrors") }}

- - -

{{ _("Logs") }}

-

- {{ _("If you need detailed information about what happended you may want to have a look at the logs.") }} -

- - - {% if current_user and current_user.is_admin() %} -

{{ _("Administrator's stuff") }}

-

- {{ _("These are a bunch of functions only available for administrators.") }} -

- - {% end %} - -
 
-{% end block %} diff --git a/data/templates/base.html b/data/templates/base.html index 44a0bc9..8fac1c5 100644 --- a/data/templates/base.html +++ b/data/templates/base.html @@ -88,16 +88,12 @@ {% end %} -
  • {{ _("Statistics") }}
  • -
  • - {{ _("Even more...") }} -
  • {% if current_user and current_user.is_admin() %}
  • diff --git a/web/__init__.py b/web/__init__.py index 83f4e3c..710b768 100644 --- a/web/__init__.py +++ b/web/__init__.py @@ -94,9 +94,6 @@ class Application(tornado.web.Application): # Entry site that lead the user to index (r"/", IndexHandler), - # Advanced options for logged in users. - (r"/advanced", AdvancedHandler), - # Handle all the users logins/logouts/registers and stuff. (r"/login", LoginHandler), (r"/logout", LogoutHandler), diff --git a/web/handlers.py b/web/handlers.py index 8fe48a1..66becda 100644 --- a/web/handlers.py +++ b/web/handlers.py @@ -43,11 +43,6 @@ class Error404Handler(BaseHandler): raise tornado.web.HTTPError(404) -class AdvancedHandler(BaseHandler): - def get(self): - self.render("advanced.html") - - class StatisticsMainHandler(BaseHandler): def get(self): args = {} -- 2.47.3