From 37432cc6025acd70c44b98266c5d0f52fccc67ca Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 28 Dec 2021 14:49:52 +0200 Subject: [PATCH] sfd --- files/routes/static.py | 6 ++++++ privacy.html => files/templates/privacy.html | 15 ++++++++++++++- files/templates/settings_filters.html | 8 ++++---- files/templates/settings_profile.html | 6 +++--- 4 files changed, 27 insertions(+), 8 deletions(-) rename privacy.html => files/templates/privacy.html (98%) diff --git a/files/routes/static.py b/files/routes/static.py index 4390dd2de..bd414da30 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -12,6 +12,12 @@ from files.classes.mod_logs import ACTIONTYPES, ACTIONTYPES2 site = environ.get("DOMAIN").strip() site_name = environ.get("SITE_NAME").strip() + +@app.get("/privacy") +@auth_desired +def privacy(v): + return render_template(f"privacy.html", v=v) + @app.get("/emojis") @auth_desired def emojis(v): diff --git a/privacy.html b/files/templates/privacy.html similarity index 98% rename from privacy.html rename to files/templates/privacy.html index 79b5d9d5a..527f3587d 100644 --- a/privacy.html +++ b/files/templates/privacy.html @@ -1,3 +1,15 @@ +{% extends "default.html" %} + +{% block title %} +{{'SITE_NAME' | app_config}} - API + +{% endblock %} + +{% block content %} +
+
+
+

Privacy Policy

Last updated: December 28, 2021

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

@@ -133,4 +145,5 @@
  • By visiting this page on our website: https://rdrama.net/contact

  • - \ No newline at end of file + +{% endblock %} \ No newline at end of file diff --git a/files/templates/settings_filters.html b/files/templates/settings_filters.html index ffb20af9b..4548bae4c 100644 --- a/files/templates/settings_filters.html +++ b/files/templates/settings_filters.html @@ -22,7 +22,7 @@

    Change how many posts appear on every page.

    - {% for entry in [25, 50, 100] %} {% endfor %} @@ -47,7 +47,7 @@

    Change the default sorting for comments.

    - {% for entry in ["new", "old", "top", "bottom", "controversial"] %} {% endfor %} @@ -66,7 +66,7 @@

    Change the default sorting for posts.

    - {% for entry in ["hot", "new", "old", "top", "bottom", "controversial", "comments"] %} {% endfor %} @@ -85,7 +85,7 @@

    Change the default time filter for posts.

    - {% for entry in ["hour", "day", "week", "month", "year", "all"] %} {% endfor %} diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 83ab260f6..0b3ce397c 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -24,7 +24,7 @@

    Choose your quadrant.

    - {% for entry in ["Centrist", "LibLeft", "LibRight", "AuthLeft", "AuthRight", "LibCenter", "AuthCenter", "Left", "Right"] %}