summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index 22c16f0..1873dd3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -25,11 +25,11 @@
<p>Not logged in. <a href="{{ url_for('index') }}">Log in</a></p>
{%- endif %}
- {% with messages = get_flashed_messages() %}
+ {% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
- <ul class=flashes>
- {% for message in messages %}
- <li>{{ message }}</li>
+ <ul class="flashes">
+ {% for category, message in messages %}
+ <li class="{{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}