Convert privacy pages to templates

This commit is contained in:
Sunil Mohan Adapa 2014-05-08 11:09:27 +05:30
parent ef7da7527d
commit c1383676d6
2 changed files with 30 additions and 18 deletions

View File

@ -24,21 +24,5 @@ class Privacy(PagePlugin):
@cherrypy.expose
@require()
def config(self):
main="""
<p>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.</p>
"""
return util.render_template(title=_("Privacy Control Panel"),
main=main,
sidebar_right=_("""<strong>Statement of Principles</strong><p>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.</p>
<p>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 <strong>you</strong> for it. This gives you a
chance to refuse and also tells you who wants your data.</p>
""") % cfg.product_name)
return util.render_template(template='privacy_config',
title=_('Privacy Control Panel'))

View File

@ -0,0 +1,28 @@
{% extends "login_nav.html" %}
{% block main_block %}
<p>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.</p>
{% endblock %}
{% block sidebar_right_block %}
<div class="well sidebar-nav">
<h3>Statement of Principles</h3>
<p>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 {{
cfg.product_name }} and the information on it.</p>
<p>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 <strong>you</strong> for it. This
gives you a chance to refuse and also tells you who wants your
data.</p>
</div>
{% endblock %}