{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% if category != 'banner-warning' %}
{% if category == 'notification' %} {% elif category == 'error' %} {% elif category == 'important' %} {% endif %} {{ message }}
{% endif %} {% endfor %} {% endif %} {% endwith %}