display messages

This commit is contained in:
Seth Ladygo
2019-03-12 23:00:56 -07:00
parent d55272bced
commit 2a083a7746

View File

@ -1,4 +1,5 @@
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -12,9 +13,19 @@
{% include "nav.html" %} {% include "nav.html" %}
{% endblock%} {% endblock%}
{% block messages %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endblock%}
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<script src="{% static 'app.js' %}"></script> <script src="{% static 'app.js' %}"></script>
</body> </body>
</html> </html>