{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- macro flashed_messages(center_text=false) -%} {%- block messages scoped %} {%- for category, msg in get_flashed_messages(with_categories=True) %} {%- set category = 'info' if category not in ['info', 'error', 'warning', 'success'] else category %} {%- set gridClass = 'container' %} {%- set firstColWidth = 'fourteen wide' %} {%- set secondColWidth = 'two wide' %} {%- if center_text %} {%- set gridClass = 'centered' %} {%- set firstColWidth = 'twelve wide mobile six wide tablet four wide computer' %} {%- set secondColWidth = 'two wide tablet one wide computer' %} {% endif %}
{%- endfor %} {%- endblock messages %} {%- endmacro %}