{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% if category not in ["logo-success","logo-error","submission-preferences-success","submission-preferences-error","org-name-success","org-name-error", "testalert-success", "testalert-error", "testalert-notification"] %} {% set category_status = category.split('-')|last %} {% endif %} {% endfor %} {% endif %} {% endwith %}