remotes/1693045480750635534/spooky-22
Aevann1 2021-12-28 14:49:52 +02:00
parent d5be93399c
commit 37432cc602
4 changed files with 27 additions and 8 deletions

View File

@ -12,6 +12,12 @@ from files.classes.mod_logs import ACTIONTYPES, ACTIONTYPES2
site = environ.get("DOMAIN").strip() site = environ.get("DOMAIN").strip()
site_name = environ.get("SITE_NAME").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") @app.get("/emojis")
@auth_desired @auth_desired
def emojis(v): def emojis(v):

View File

@ -1,3 +1,15 @@
{% extends "default.html" %}
{% block title %}
<title>{{'SITE_NAME' | app_config}} - API</title>
{% endblock %}
{% block content %}
<pre>
</pre>
<h1>Privacy Policy</h1> <h1>Privacy Policy</h1>
<p>Last updated: December 28, 2021</p> <p>Last updated: December 28, 2021</p>
<p>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.</p> <p>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.</p>
@ -133,4 +145,5 @@
<li> <li>
<p>By visiting this page on our website: <a href="https://rdrama.net/contact" rel="external nofollow noopener" target="_blank">https://rdrama.net/contact</a></p> <p>By visiting this page on our website: <a href="https://rdrama.net/contact" rel="external nofollow noopener" target="_blank">https://rdrama.net/contact</a></p>
</li> </li>
</ul> </ul>
{% endblock %}

View File

@ -22,7 +22,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change how many posts appear on every page.</p> <p>Change how many posts appear on every page.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast('/settings/profile?frontsize='+document.getElementById('frontsize').value)"> <select autocomplete="off" id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast('/settings/profile?frontsize='+document.getElementById('frontsize').value)">
{% for entry in [25, 50, 100] %} {% for entry in [25, 50, 100] %}
<option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option> <option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option>
{% endfor %} {% endfor %}
@ -47,7 +47,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change the default sorting for comments.</p> <p>Change the default sorting for comments.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='defaultsortingcomments' class="form-control" form="profile-settings" name="defaultsortingcomments" onchange="post_toast('/settings/profile?defaultsortingcomments='+document.getElementById('defaultsortingcomments').value)"> <select autocomplete="off" id='defaultsortingcomments' class="form-control" form="profile-settings" name="defaultsortingcomments" onchange="post_toast('/settings/profile?defaultsortingcomments='+document.getElementById('defaultsortingcomments').value)">
{% for entry in ["new", "old", "top", "bottom", "controversial"] %} {% for entry in ["new", "old", "top", "bottom", "controversial"] %}
<option value="{{entry}}"{{' selected' if v.defaultsortingcomments==entry}}>{{entry}}</option> <option value="{{entry}}"{{' selected' if v.defaultsortingcomments==entry}}>{{entry}}</option>
{% endfor %} {% endfor %}
@ -66,7 +66,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change the default sorting for posts.</p> <p>Change the default sorting for posts.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='defaultsorting' class="form-control" form="profile-settings" name="defaultsorting" onchange="post_toast('/settings/profile?defaultsorting='+document.getElementById('defaultsorting').value)"> <select autocomplete="off" id='defaultsorting' class="form-control" form="profile-settings" name="defaultsorting" onchange="post_toast('/settings/profile?defaultsorting='+document.getElementById('defaultsorting').value)">
{% for entry in ["hot", "new", "old", "top", "bottom", "controversial", "comments"] %} {% for entry in ["hot", "new", "old", "top", "bottom", "controversial", "comments"] %}
<option value="{{entry}}"{{' selected' if v.defaultsorting==entry}}>{{entry}}</option> <option value="{{entry}}"{{' selected' if v.defaultsorting==entry}}>{{entry}}</option>
{% endfor %} {% endfor %}
@ -85,7 +85,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change the default time filter for posts.</p> <p>Change the default time filter for posts.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='defaulttime' class="form-control" form="profile-settings" name="defaulttime" onchange="post_toast('/settings/profile?defaulttime='+document.getElementById('defaulttime').value)"> <select autocomplete="off" id='defaulttime' class="form-control" form="profile-settings" name="defaulttime" onchange="post_toast('/settings/profile?defaulttime='+document.getElementById('defaulttime').value)">
{% for entry in ["hour", "day", "week", "month", "year", "all"] %} {% for entry in ["hour", "day", "week", "month", "year", "all"] %}
<option value="{{entry}}"{{' selected' if v.defaulttime==entry}}>{{entry}}</option> <option value="{{entry}}"{{' selected' if v.defaulttime==entry}}>{{entry}}</option>
{% endfor %} {% endfor %}

View File

@ -24,7 +24,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Choose your quadrant.</p> <p>Choose your quadrant.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='quadrant' class="form-control" form="profile-settings" name="quadrant" onchange="post_toast('/settings/profile?quadrant='+document.getElementById('quadrant').value, '1')"> <select autocomplete="off" id='quadrant' class="form-control" form="profile-settings" name="quadrant" onchange="post_toast('/settings/profile?quadrant='+document.getElementById('quadrant').value, '1')">
{% for entry in ["Centrist", "LibLeft", "LibRight", "AuthLeft", "AuthRight", "LibCenter", "AuthCenter", "Left", "Right"] %} {% for entry in ["Centrist", "LibLeft", "LibRight", "AuthLeft", "AuthRight", "LibCenter", "AuthCenter", "Left", "Right"] %}
<option value="{{entry}}" {% if v.quadrant==entry %} selected {% endif %}> <option value="{{entry}}" {% if v.quadrant==entry %} selected {% endif %}>
{{entry}} {{entry}}
@ -110,7 +110,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change the theme for the website.</p> <p>Change the theme for the website.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='theme' class="form-control" form="profile-settings" name="theme" onchange="post_toast('/settings/profile?theme='+document.getElementById('theme').value, '1')"> <select autocomplete="off" id='theme' class="form-control" form="profile-settings" name="theme" onchange="post_toast('/settings/profile?theme='+document.getElementById('theme').value, '1')">
{% if v.background %} {% if v.background %}
{% set entries = ["transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"] %} {% set entries = ["transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"] %}
{% else %} {% else %}
@ -161,7 +161,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<p>Change the background for the website.</p> <p>Change the background for the website.</p>
<div class="input-group mb2"> <div class="input-group mb2">
<select id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();"> <select autocomplete="off" id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();">
{% for entry in ["fantasy", "solarpunk", "pixelart"] %} {% for entry in ["fantasy", "solarpunk", "pixelart"] %}
<option value="{{entry}}"> <option value="{{entry}}">
{{entry}} {{entry}}