mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
Convert privacy pages to templates
This commit is contained in:
parent
ef7da7527d
commit
c1383676d6
@ -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'))
|
||||
|
||||
28
modules/installed/privacy/templates/privacy_config.html
Normal file
28
modules/installed/privacy/templates/privacy_config.html
Normal 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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user