From c1383676d679b87f5d3e673b883ad6aa546c5748 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 8 May 2014 11:09:27 +0530 Subject: [PATCH] Convert privacy pages to templates --- modules/installed/privacy/privacy.py | 20 ++----------- .../privacy/templates/privacy_config.html | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 modules/installed/privacy/templates/privacy_config.html diff --git a/modules/installed/privacy/privacy.py b/modules/installed/privacy/privacy.py index 5b9127d36..8de533f88 100644 --- a/modules/installed/privacy/privacy.py +++ b/modules/installed/privacy/privacy.py @@ -24,21 +24,5 @@ class Privacy(PagePlugin): @cherrypy.expose @require() def config(self): - main=""" -

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.

- """ - return util.render_template(title=_("Privacy Control Panel"), - main=main, -sidebar_right=_("""Statement of Principles

When we say your -privacy is important, it's not just an empty pleasantry. We really -mean it. Your privacy control panel should give you fine-grained -control over exactly who can access your %s and the -information on it.

- -

Your personal information should not leave this box without your -knowledge and direction. And if companies or government wants this -information, they have to ask you for it. This gives you a -chance to refuse and also tells you who wants your data.

-""") % cfg.product_name) + 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 new file mode 100644 index 000000000..9a81851c9 --- /dev/null +++ b/modules/installed/privacy/templates/privacy_config.html @@ -0,0 +1,28 @@ +{% extends "login_nav.html" %} + +{% block main_block %} + +

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 %}