diff --git a/modules/installed/privacy/privacy.py b/modules/installed/privacy/privacy.py
deleted file mode 100644
index 238ffc483..000000000
--- a/modules/installed/privacy/privacy.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import cherrypy
-from gettext import gettext as _
-from plugin_mount import PagePlugin
-from modules.auth import require
-import cfg
-import util
-
-
-class Privacy(PagePlugin):
- order = 20 # order of running init in PagePlugins
- def __init__(self, *args, **kwargs):
- PagePlugin.__init__(self, *args, **kwargs)
- self.register_page("privacy")
- self.menu = cfg.main_menu.add_item("Privacy", "icon-eye-open", "/privacy", 12)
-
- @cherrypy.expose
- def index(self):
- return util.render_template(template='privacy_config',
- title=_('Privacy Control Panel'))
diff --git a/modules/installed/privacy/templates/privacy_config.html b/modules/installed/privacy/templates/privacy_config.html
deleted file mode 100644
index cc3becb15..000000000
--- a/modules/installed/privacy/templates/privacy_config.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{% extends "login_nav.html" %}
-{% comment %}
-#
-# This file is part of Plinth.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see
Privacy controls are not yet implemented. This page is a -placeholder and a promise: privacy is important enough that it is a -founding consideration, not an afterthought.
- -{% endblock %} - -{% block sidebar_right_block %} - - - -{% endblock %} diff --git a/modules/installed/privacy/templates/tor.html b/modules/installed/tor/templates/tor.html similarity index 100% rename from modules/installed/privacy/templates/tor.html rename to modules/installed/tor/templates/tor.html diff --git a/modules/installed/privacy/tor.py b/modules/installed/tor/tor.py similarity index 87% rename from modules/installed/privacy/tor.py rename to modules/installed/tor/tor.py index 404553629..b09daf417 100644 --- a/modules/installed/privacy/tor.py +++ b/modules/installed/tor/tor.py @@ -29,11 +29,12 @@ import util class tor(PagePlugin): - order = 30 # order of running init in PagePlugins + order = 60 # order of running init in PagePlugins def __init__(self, *args, **kwargs): PagePlugin.__init__(self, *args, **kwargs) - self.register_page("privacy.tor") - cfg.html_root.privacy.menu.add_item("Tor", "icon-eye-close", "/privacy/tor", 30) + self.register_page("apps.tor") + cfg.html_root.apps.menu.add_item("Tor", "icon-eye-close", "/apps/tor", + 30) @cherrypy.expose @require() diff --git a/modules/privacy.py b/modules/privacy.py deleted file mode 120000 index 07f303ee7..000000000 --- a/modules/privacy.py +++ /dev/null @@ -1 +0,0 @@ -installed/privacy/privacy.py \ No newline at end of file diff --git a/modules/tor.py b/modules/tor.py index 28c310568..4c888a3a1 120000 --- a/modules/tor.py +++ b/modules/tor.py @@ -1 +1 @@ -installed/privacy/tor.py \ No newline at end of file +installed/tor/tor.py \ No newline at end of file