Show messages in base template

This commit is contained in:
Adam Goldsmith 2022-02-07 19:48:08 -05:00
parent 8c0252f68c
commit c77b02cdf3

View File

@ -43,6 +43,17 @@
</div>
</div>
</nav>
{% if messages %}
<div class="messages m-3">
{% for message in messages %}
{# TODO: should use tags correctly for bootstrap alerts #}
<div role="alert" class="alert alert-info alert-dismissible fade show {% if message.tags %} {{ message.tags }}{% endif %}">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
</div>
{% endif %}
<div id="content" class="m-3">
{% block content %}{% endblock %}
</div>