From d95bef2cbaa02a1fbc0412c49a33c60400c97297 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 19 Jun 2016 20:28:42 +0200 Subject: add legal header --- app.py | 2 ++ config-template.py | 3 ++- templates/index.html | 17 ++++++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 900d679..e060f13 100644 --- a/app.py +++ b/app.py @@ -537,6 +537,7 @@ def page(num): user['loggedin'] = True user['name'] = session['userlogin'] resp = make_response( + # TODO clean this up render_template( 'index.html', currentpage=num, @@ -545,6 +546,7 @@ def page(num): tags=search, perpage=perpage, jokes=jokes, + abusemail=config['abusemail'], user=user)) resp.headers.set('X-SmoothState-Location', request.path) return resp diff --git a/config-template.py b/config-template.py index a541c11..347e5c9 100644 --- a/config-template.py +++ b/config-template.py @@ -1,5 +1,6 @@ config = { 'secret_key': b'', 'debug': False, - 'superuser': 'admin' + 'superuser': 'admin', + 'abusemail': 'admin@host.example.com' } diff --git a/templates/index.html b/templates/index.html index 2332fcf..296490a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,7 +20,7 @@ {% if user.loggedin %} Logout ({{ user.name }}) {% else %} - Login + Login {% endif %}
  • @@ -170,6 +170,21 @@ +
    + + +