Holger Frey
7 years ago
12 changed files with 87 additions and 95 deletions
@ -1,14 +1,3 @@
@@ -1,14 +1,3 @@
|
||||
{% 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> |
||||
{% macro white_space_column(size='col-2') -%} |
||||
</div><div class="{{ size }}"> |
||||
{%- endmacro %} |
||||
|
Reference in new issue