feat: Add rules

This commit is contained in:
2024-03-20 11:02:24 +01:00
parent 1bcdbdbbf5
commit 079b2073a1
8 changed files with 61 additions and 8 deletions

View File

@@ -2,6 +2,6 @@
{% load i18n %}
{% block content %}
<h1>{{ markdown_content.title }}</h1>
<p>{{ markdown_content.content|safe }}</p>
<h1>Rules</h1>
{% include "fellchensammlung/list-rules.html" %}
{% endblock %}

View File

@@ -0,0 +1,5 @@
<div class="list-rules">
{% for rule in rules %}
{% include "fellchensammlung/partial-rule.html" %}
{% endfor %}
</div>

View File

@@ -0,0 +1,3 @@
{% load custom_tags %}
<h2>{{ rule.title }}</h2>
<p>{{ rule.rule_text | render_markdown }}</p>