Holger Frey
7 years ago
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
{% macro flash_messages() -%} |
||||
{% for queue in ('ok', 'warning', 'error') %} |
||||
{% for message in request.session.pop_flash(queue) %} |
||||
{% set css_class = 'danger' if queue == 'error' else queue %} |
||||
<div class="alert alert-{{ css_class }} role="alert"> |
||||
{{message|safe}} |
||||
</div> |
||||
{% endfor %} |
||||
{% endfor %} |
||||
{%- endmacro %} |
||||
|
||||
{% macro center_column_hack() -%} |
||||
</div><div class="col-2"></div> |
||||
{%- endmacro %} |
Reference in new issue