Add privacy policy
This commit is contained in:
parent
e9b2928299
commit
ee274a7df7
4 changed files with 30 additions and 2 deletions
4
main.py
4
main.py
|
@ -741,6 +741,10 @@ def cron():
|
||||||
update_data()
|
update_data()
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
@app.route("/privacypolicy/")
|
||||||
|
def privacypolicy():
|
||||||
|
return render_template("privacypolicy.html")
|
||||||
|
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def not_found(e):
|
def not_found(e):
|
||||||
return render_template("404.html")
|
return render_template("404.html")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<hr>
|
<hr>
|
||||||
<center>
|
<center>
|
||||||
<p><a href="">Source code (AGPLv3)</a></p>
|
<p><a href="https://codeberg.org/indestructables/indestructables">Source code (AGPLv3)</a></p>
|
||||||
<p><a href="">View privacy policy.</a></p>
|
<p><a href="/privacypolicy">View privacy policy.</a></p>
|
||||||
</center>
|
</center>
|
||||||
</footer>
|
</footer>
|
23
templates/privacypolicy.html
Normal file
23
templates/privacypolicy.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Privacy Policy - Indestructables</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
{% include "style.html" %}
|
||||||
|
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/favicon.png') }}">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{% include "header.html" %}
|
||||||
|
<center>
|
||||||
|
<br>
|
||||||
|
<h1 style="font-size:2em;line-height:0em;">Privacy Policy</h1>
|
||||||
|
<br>
|
||||||
|
<p>{% include "privacypolicy.txt" %}</p>
|
||||||
|
</center>
|
||||||
|
{% include "footer.html" %}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
1
templates/privacypolicy.txt
Normal file
1
templates/privacypolicy.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Nothing here, yet!
|
Loading…
Reference in a new issue