2025-02-21 11:57:59 -05:00
|
|
|
<!DOCTYPE html>
|
2025-05-01 16:47:14 -04:00
|
|
|
|
|
|
|
<% theme = Current.user&.theme || "system" %>
|
|
|
|
|
|
|
|
<html
|
|
|
|
lang="en"
|
|
|
|
data-theme="<%= theme %>"
|
|
|
|
data-controller="theme intercom"
|
|
|
|
data-theme-user-preference-value="<%= Current.user&.theme || "system" %>"
|
|
|
|
class="h-full text-primary overflow-hidden lg:overflow-auto font-sans <%= @os %>">
|
2025-02-21 11:57:59 -05:00
|
|
|
<head>
|
|
|
|
<%= render "layouts/shared/head" %>
|
|
|
|
<%= yield :head %>
|
|
|
|
</head>
|
|
|
|
|
2025-04-30 22:29:06 -04:00
|
|
|
<body class="h-full overflow-hidden lg:overflow-auto antialiased">
|
2025-05-01 16:47:14 -04:00
|
|
|
<% if Rails.env.development? %>
|
|
|
|
<button hidden data-controller="hotkey" data-hotkey="t t /" data-action="theme#toggle"></button>
|
|
|
|
<% end %>
|
|
|
|
|
2025-04-19 00:26:44 +05:30
|
|
|
<div class="fixed z-50 top-6 md:top-4 left-1/2 -translate-x-1/2 w-full md:w-80 px-4 md:px-0 mx-auto md:mx-0 md:right-auto mt-safe">
|
2025-03-10 11:20:58 -05:00
|
|
|
<div id="notification-tray" class="space-y-1 w-full">
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render_flash_notifications %>
|
|
|
|
|
2025-04-18 11:39:58 -04:00
|
|
|
<div id="cta"></div>
|
2025-02-21 11:57:59 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2025-05-07 13:56:20 -04:00
|
|
|
<% if Current.family %>
|
|
|
|
<%= turbo_stream_from Current.family %>
|
|
|
|
<% end %>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
|
|
|
<%= turbo_frame_tag "modal" %>
|
|
|
|
<%= turbo_frame_tag "drawer" %>
|
2025-04-30 18:14:22 -04:00
|
|
|
|
|
|
|
<%# Custom overrides for browser's confirm API %>
|
|
|
|
<%= render "layouts/shared/confirm_dialog" %>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
|
|
|
<%= render "impersonation_sessions/super_admin_bar" if Current.true_user&.super_admin? && show_super_admin_bar? %>
|
|
|
|
<%= render "impersonation_sessions/approval_bar" if Current.true_user&.impersonated_support_sessions&.initiated&.any? %>
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
</body>
|
|
|
|
</html>
|