Add footer in base template
This commit is contained in:
parent
16bc397b60
commit
d6cb71f804
|
@ -28,16 +28,14 @@
|
|||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
{% if DEBUG %}
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
Debug-Modus:
|
||||
{% if helper %}
|
||||
<a href="{% url 'token_logout' %}">logout</a>
|
||||
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue