{# SPDX-FileCopyrightText: 2020-2026 Graz University of Technology. SPDX-License-Identifier: MIT Overrides: invenio_theme/macros/messages.html Changes: - Redesigned flash message layout with category icons and a close button. - Wraps each message in a flashed-wrapper div for positioning. #} {%- 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 %}