summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-21 15:32:15 +0200
committerMarian Sigler <m@qjym.de>2012-09-21 15:32:15 +0200
commitc6d55f462ebc1d5fb387ccc7873582406205bef8 (patch)
tree96349dff31b623258612c26a7926fe909306c705 /templates/base.html
parentc89a73370e51e0218a6a8b9dbfe34527c002fb22 (diff)
downloadweb-c6d55f462ebc1d5fb387ccc7873582406205bef8.tar.gz
web-c6d55f462ebc1d5fb387ccc7873582406205bef8.tar.bz2
web-c6d55f462ebc1d5fb387ccc7873582406205bef8.zip
add color to flashes
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 %}