feat: Add about_us text

This commit is contained in:
moanos [he/him] 2024-11-07 07:58:17 +01:00
parent 655e304c6c
commit eb734d2716
3 changed files with 7 additions and 1 deletions

View File

@ -51,6 +51,7 @@ Therefore, a solution is used where a number of predefined texts per site are su
| `privacy_statement` | About |
| `terms_of_service` | About |
| `imprint` | About |
| `about_us` | About |
| Any rule | About |
# Developer Notes

View File

@ -5,6 +5,11 @@
{% block title %}<title>{% translate "Über uns und Regeln" %}</title>{% endblock %}
{% block content %}
{% if about_us %}
<h1>{{ about_us.title }}</h1>
{{ about_us.content | render_markdown }}
{% endif %}
<h1>{% translate "Regeln" %}</h1>
{% include "fellchensammlung/lists/list-rules.html" %}

View File

@ -340,7 +340,7 @@ def about(request):
lang = Language.objects.get(languagecode=language_code)
legal = {}
for text_code in ["terms_of_service", "privacy_statement", "imprint"]:
for text_code in ["terms_of_service", "privacy_statement", "imprint", "about_us"]:
try:
legal[text_code] = Text.objects.get(text_code=text_code, language=lang, )
except Text.DoesNotExist: