|
|
@ -2,8 +2,10 @@ |
|
|
|
{% for queue in ('success', 'info', 'warning', 'error') %} |
|
|
|
{% for queue in ('success', 'info', 'warning', 'error') %} |
|
|
|
{% for message in request.session.pop_flash(queue) %} |
|
|
|
{% for message in request.session.pop_flash(queue) %} |
|
|
|
{% set css_class = 'danger' if queue == 'error' else queue %} |
|
|
|
{% set css_class = 'danger' if queue == 'error' else queue %} |
|
|
|
<div class="alert alert-{{ css_class }} alert-dismissible" role="alert"> |
|
|
|
<div class="alert alert-{{ css_class }} {% if message.dismissable %}alert-dismissible{% endif %}" role="alert"> |
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> |
|
|
|
{% if message.dismissable %} |
|
|
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
<strong>{{message.message|safe}}</strong> |
|
|
|
<strong>{{message.message|safe}}</strong> |
|
|
|
{% if message.description %} |
|
|
|
{% if message.description %} |
|
|
|
<br>{{message.description|safe}} |
|
|
|
<br>{{message.description|safe}} |
|
|
|