src/ApplicationBundle/Resources/views/inc/_support_session_banner.html.twig line 1

Open in your IDE?
  1. {# CC6 — persistent banner while a super-admin support session (impersonation) is active.
  2.    Self-contained (model: _subscription_readonly_banner). Ruling #5: the banner is mandatory —
  3.    the impersonated tenant view must always show that support is inside and that everything is
  4.    logged. Included from header.html.twig (legacy pages) + @System main_layout (cp-shell). #}
  5. {% if app.session.get('hb_support_session') == 1 %}
  6. <div style="position:sticky;top:0;z-index:2000;background:#7c2d12;color:#fff;padding:8px 16px;font-size:var(--cp-fs-base);display:flex;align-items:center;gap:12px;flex-wrap:wrap;box-shadow:0 2px 6px rgba(0,0,0,.25);">
  7.     <span style="font-weight:700;">🛠 SUPPORT SESSION</span>
  8.     <span>{{ app.session.get('hb_support_admin_name') ?: 'Platform support' }} is viewing as <b>{{ app.session.get('userName') }}</b> — every action is logged.</span>
  9.     <span style="opacity:.75;">Reason: {{ app.session.get('hb_support_reason') }}</span>
  10.     <span style="opacity:.75;">Approvals, signatures &amp; user management are disabled.</span>
  11.     <a href="{{ path('support_access_end') }}" style="margin-left:auto;background:#fff;color:#7c2d12;border-radius:5px;padding:3px 12px;font-weight:700;text-decoration:none;">End support session</a>
  12. </div>
  13. {% endif %}