%# locals: (sidebar_aware: false) %> <% theme = Current.user&.theme || "system" %> " class="h-[var(--app-height, 100dvh)] text-primary bg-surface overflow-hidden overscroll-none font-sans <%= @os %>">
<%= render "layouts/shared/head" %> <%= yield :head %> data-controller="notification-tray"<% end %>> <% if Rails.env.development? %> <% end %> <% if Current.family %> <%= turbo_stream_from Current.family %> <% end %> <%= turbo_frame_tag "modal" %> <%= turbo_frame_tag "drawer" %> <%# Custom overrides for browser's confirm API %> <%= render "layouts/shared/confirm_dialog" %> <% super_admin_bar_visible = Current.true_user&.super_admin? && show_super_admin_bar? %> <% approval_bar_visible = Current.true_user&.impersonated_support_sessions&.initiated&.any? %> <%= render "impersonation_sessions/super_admin_bar" if super_admin_bar_visible %> <%= render "impersonation_sessions/approval_bar" if approval_bar_visible %> <%# Only surface the Sidekiq nudge to operators who can act on it. The Redis round-trip and banner render are both skipped for non-super-admins and for managed-mode deployments — `current_sidekiq_health` returns nil in those cases. %> <% if Current.user&.super_admin? && current_sidekiq_health && !current_sidekiq_health.healthy? %> <% if sidebar_aware %> <% content_for :system_alerts do %>