2
0
Fork 0

(Ab)use breadcrumb component for footer nav

This commit is contained in:
Luca 2022-04-29 18:43:48 +02:00
parent 0a598afe95
commit 36a9e13c29
3 changed files with 9 additions and 17 deletions

View File

@ -31,9 +31,8 @@
{% endblock %}
{% block footer %}
<div class="content has-text-left"><a href="{% url 'pages:view' 'faq' %}">FAQ</a></div>
{% if DEBUG %}
Debug-Modus:
(Debug-Modus)
{% if helper %}
<a href="{% url 'token_logout' %}">logout</a>
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% comment "" %}
this is a copy of helper_base, maybe cross-app include it or use a more lightweight template?
{% endcomment %}
{% block title %}{{page.title}}{% endblock %}
{% block navbar %}
@ -30,13 +28,3 @@ this is a copy of helper_base, maybe cross-app include it or use a more lightwei
</div>
</section>
{% endblock %}
{% block footer %}
{% if DEBUG %}
Debug-Modus:
{% if helper %}
<a href="{% url 'token_logout' %}">logout</a>
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>
{% endif %}
{% endif %}
{% endblock %}

View File

@ -37,7 +37,12 @@
<div class="container">
{% block footer %}
{% endblock %}
<div class="content has-text-right"><a href="{% url 'pages:view' 'about' %}">Über diese Seite/Impressum</a></div>
<div class="breadcrumb has-dot-separator is-right">
<ul>
<li><a href="{% url 'pages:view' 'faq' %}">Häufig gestellte Fragen</a></li>
<li><a href="{% url 'pages:view' 'about' %}">Über diese Seite/Impressum</a></li>
</ul>
</div>
</div>
</footer>
<script>