2
0
Fork 0

Add footer in base template

This commit is contained in:
Luca 2022-04-28 16:02:21 +02:00
parent 16bc397b60
commit d6cb71f804
2 changed files with 15 additions and 7 deletions

View File

@ -28,16 +28,14 @@
{% block content %}{% endblock %}
</div>
</section>
{% endblock %}
{% block footer %}
{% if DEBUG %}
<footer class="footer">
<div class="container">
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>
<a href="{% url 'token_logout' %}">logout</a>
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>
{% endif %}
</div>
</footer>
{% endif %}
{% endblock %}

View File

@ -27,8 +27,18 @@
</div>
</nav>
{% block body %}
<section class="section">
<div class="container">
{% include 'notifications.html' %}
</div>
</section>
{% endblock %}
<footer class="footer">
<div class="container">
{% block footer %}
{% endblock %}
</div>
</footer>
<script>
document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove()));
document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => {