Middelware update and footer content
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 39s

This commit is contained in:
2024-12-20 22:35:39 +01:00
parent 18181d7ce8
commit d58e5b0d12
10 changed files with 192 additions and 32 deletions

View File

@@ -21,6 +21,18 @@
<!-- Content -->
{% block content %}{% endblock %}
<footer>
{% if request.state.next_category %}
<p>
<a href="/category/{{ request.state.next_category.path }}" class="footer-link">
{{ request.state.next_category.description }}
</a>
</p>
{% else %}
<p>Ingen næste kategori.</p>
{% endif %}
</footer>
</div>
</div>

11
templates/route_list.html Normal file
View File

@@ -0,0 +1,11 @@
<h3>Næste Kategori</h3>
{% if request.state.next_category %}
<p>
<a href="/category/{{ request.state.next_category.path }}">
{{ request.state.next_category.name }}
</a>
</p>
{% else %}
<p>Ingen næste kategori.</p>
{% endif %}