templates/partials/flash_message_popup.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'messages' %}
  2. {%- if (app.request.hasPreviousSession or app.session.started) -%}
  3.     {% if is_granted('ROLE_USER') and ((app.request.hasPreviousSession or app.session.started) and app.session.flashBag.has('error_messages')) %}
  4.         {% include 'partials/base_overlay.html.twig' with {
  5.             icon: 'dp-icon-failed',
  6.             title: 'flash_message.failed'|trans,
  7.             subtitle: app.session.flashBag.get('error_messages'),
  8.         } %}
  9.     {% endif %}
  10.     {% if is_granted('ROLE_USER') and ((app.request.hasPreviousSession or app.session.started) and app.session.flashBag.has('success_messages')) %}
  11.         {% include 'partials/base_overlay.html.twig' with {
  12.             icon: 'dp-icon-success',
  13.             title: 'flash_message.success'|trans,
  14.             subtitle: app.session.flashBag.get('success_messages'),
  15.         } %}
  16.     {% endif %}
  17. {%- endif -%}