Render a flash message component for each message

This commit is contained in:
Dave Smith-Hayes 2024-12-29 02:54:53 +00:00
parent 1c0109ba2f
commit 7fd5798454

View File

@ -1,7 +1,7 @@
{% for level, messages in session.getFlash().all() %} {% for level, messages in session.getFlash().all() %}
<div class="flash {{ level }}" role="alert"> {% for message in messages %}
{% for message in messages %} <div class="flash {{ level }}" role="alert">
<div>{{ message }}</div> {{ message }}
{% endfor %} </div>
</div> {% endfor %}
{% endfor %} {% endfor %}