Show messages in base template
This commit is contained in:
parent
8c0252f68c
commit
c77b02cdf3
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user