{%- with errors = get_flashed_messages(category_filter=["success"]) -%} {%- if errors and not hide_alert_success %}