feat: Add about_us text
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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" %} | ||||
|  | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user