{%- if (app.request.hasPreviousSession or app.session.started) -%}
{%- for message in app.session.flashBag.get('success_messages') -%}
<div class="alert alert-success {% if showAsGrowl|default(false) %}d-none{% endif %} alert-icon system-message mb-4" data-message-text="{{- message -}}" data-message-type="success">
<em class="icon ni ni-check-circle"></em>
<span>{{- message -}}</span>
</div>
{%- endfor -%}
{%- for message in app.session.flashBag.get('error_messages') -%}
<div class="alert alert-danger {% if showAsGrowl|default(false) %}d-none{% endif %} alert-icon system-message mb-4" data-message-text="{{- message -}}" data-message-type="error">
<em class="icon ni ni-cross-circle"></em>
<span>{{- message -}}</span>
</div>
{%- endfor -%}
{%- endif -%}