feat: Add about_us text
This commit is contained in:
parent
655e304c6c
commit
eb734d2716
@ -51,6 +51,7 @@ Therefore, a solution is used where a number of predefined texts per site are su
|
|||||||
| `privacy_statement` | About |
|
| `privacy_statement` | About |
|
||||||
| `terms_of_service` | About |
|
| `terms_of_service` | About |
|
||||||
| `imprint` | About |
|
| `imprint` | About |
|
||||||
|
| `about_us` | About |
|
||||||
| Any rule | About |
|
| Any rule | About |
|
||||||
|
|
||||||
# Developer Notes
|
# Developer Notes
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
{% block title %}<title>{% translate "Über uns und Regeln" %}</title>{% endblock %}
|
{% block title %}<title>{% translate "Über uns und Regeln" %}</title>{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if about_us %}
|
||||||
|
<h1>{{ about_us.title }}</h1>
|
||||||
|
{{ about_us.content | render_markdown }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h1>{% translate "Regeln" %}</h1>
|
<h1>{% translate "Regeln" %}</h1>
|
||||||
{% include "fellchensammlung/lists/list-rules.html" %}
|
{% include "fellchensammlung/lists/list-rules.html" %}
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ def about(request):
|
|||||||
lang = Language.objects.get(languagecode=language_code)
|
lang = Language.objects.get(languagecode=language_code)
|
||||||
|
|
||||||
legal = {}
|
legal = {}
|
||||||
for text_code in ["terms_of_service", "privacy_statement", "imprint"]:
|
for text_code in ["terms_of_service", "privacy_statement", "imprint", "about_us"]:
|
||||||
try:
|
try:
|
||||||
legal[text_code] = Text.objects.get(text_code=text_code, language=lang, )
|
legal[text_code] = Text.objects.get(text_code=text_code, language=lang, )
|
||||||
except Text.DoesNotExist:
|
except Text.DoesNotExist:
|
||||||
|
Loading…
Reference in New Issue
Block a user