add contact information to config

This commit is contained in:
2025-12-04 06:16:00 +03:00
parent 73af2dc3b9
commit c70f13d069
15 changed files with 90 additions and 14 deletions

View File

@@ -23,9 +23,7 @@
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
<footer class="darkbg">
<span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/pyrom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
</footer>
{% include 'common/footer.html' %}
</bitty-6-0>
<script src="{{ "/static/js/ui.js" | cachebust }}"></script>
</body>

View File

@@ -0,0 +1,6 @@
<footer id="footer">
<span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/pyrom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
<ul class="horizontal">
<li><a href="{{ url_for('guides.contact') }}">Contact</a></li>
</ul>
</footer>

View File

@@ -99,7 +99,7 @@
<button data-send="insertBabycodeTag" data-tag="spoiler=" data-break-line="1" data-prefill="hidden content" class="babycode-button contain-svg" type=button id="post-editor-spoiler" title="Insert spoiler" {{"disabled" if "spoiler" in banned_tags else ""}}>{{ icn_spoiler() }}</button>
</span>
<textarea class="babycode-editor" name="{{ ta_name }}" id="babycode-content" placeholder="{{ ta_placeholder }}" {{ "required" if not optional else "" }} autocomplete="off" data-receive="insertBabycodeTag addQuote">{{ prefill }}</textarea>
<a href="{{ url_for("app.babycode_guide") }}" target="_blank">babycode guide</a>
<a href="{{ url_for("guides.babycode") }}" target="_blank">babycode guide</a>
{% if banned_tags %}
<div>Forbidden tags:</div>
<div>

View File

@@ -1,4 +1,3 @@
<!-- kate: remove-trailing-space off; -->
{% extends 'base.html' %}
{% block title %}babycode guide{% endblock %}
{% block content %}

View File

@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}contact us{% endblock %}
{% block content %}
<div class="darkbg settings-container">
<h1>Contact</h1>
{% if config.ADMIN_CONTACT_INFO %}
<p>The administrators of {{ config.SITE_NAME }} provide the following contact information:</p>
<div>{{ config.ADMIN_CONTACT_INFO | babycode_strict | safe }}</div>
{% else %}
<p>The administrators of {{ config.SITE_NAME }} did not provide any contact information.</p>
{% endif %}
</div>
{% endblock %}

View File

@@ -4,7 +4,7 @@
<div class="darkbg login-container">
<h1>Confirm account deletion</h1>
<p>Are you sure you want to delete your account on {{ config.SITE_NAME }}? <strong>This action is irreversible.</strong> Your posts and threads will remain accessible to preserve history but will be de-personalized, showing up as authored by a system user. Posts that @mention you will also mention the system user instead.</p>
<p>If you wish for any and all content relating to you to be removed, you will have to ask {{ config.SITE_NAME }}'s administrators separately.</p>
<p>If you wish for any and all content relating to you to be removed, you will have to <a href="{{url_for("guides.contact")}}" target="_blank">contact {{ config.SITE_NAME }}'s administrators separately.</a></p>
<p>If you are sure, please confirm your current password below.</p>
<form method="post">
<label for="password">Confirm password</label>