{# -*- 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() -%} {%- block messages %} {%- for category, msg in get_flashed_messages(with_categories=True) %} {%- set category = 'info' if category not in ['info', 'danger', 'warning', 'success'] else category %}