Commit eafe356f authored by Paul Brown's avatar Paul Brown

Merge pull request #926 from pawl/allow_success_flash

Allow flash message in success style
parents 15a47a55 a6815759
......@@ -70,8 +70,9 @@
{% if messages %}
{% for category, m in messages %}
{% if category %}
{# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #}
{% set mapping = {'message': 'info', 'error': 'danger'} %}
<div class="alert alert-{{ mapping.get(category, 'warning') }} alert-dismissable">
<div class="alert alert-{{ mapping.get(category, category) }} alert-dismissable">
{% else %}
<div class="alert alert-dismissable">
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment