{# This file was part of Flask-Bootstrap and was modified under the terms of its BSD License. Copyright (c) 2013, Marc Brinkmann. All rights reserved. #} {# This file was part of Bootstrap-Flask and was modified under the terms of its MIT License. Copyright (c) 2018 Grey Li. All rights reserved.#} {% macro render_ui_messages(messages=None, title=None, container=True, transform={ 'critical': 'danger', 'error': 'danger', 'info': 'info', 'warning': 'warning', 'debug': 'info', 'notset': 'info', 'message': 'info', 'success': 'info', 'list': 'info' }, default_category=config.FOMANTIC_MSG_CATEGORY, dismissible=False) -%} {% with messages = messages or get_flashed_messages(with_categories=true) %} {% if messages %} {% if container -%}