Handle all Bootstrap alert types

This commit is contained in:
Jérémy Leherpeur 2013-08-17 10:39:20 +02:00
parent 7d129c499b
commit 15168f7712

View file

@ -55,8 +55,9 @@
{% endblock %}
</div>
<div class="span10" id="content">
{% for type in ['success', 'error'] %}
{% for type in ['success', 'error', 'info', 'warning'] %}
{% for message in app.session.flashbag.get(type) %}
{% set type = type == 'warning' ? 'block' : type %}
<div class="alert alert-{{ type }}">
{{ message }}
<a class="close" data-dismiss="alert" href="#">&times;</a>