mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 23:59:40 +02:00
45 lines
1.7 KiB
Text
45 lines
1.7 KiB
Text
<!DOCTYPE html>
|
|
<html class="h-full text-primary overflow-hidden lg:overflow-auto font-sans <%= @os %>" lang="en" data-controller="theme intercom" data-theme-user-preference-value="<%= Current.user&.theme || "system" %>">
|
|
<head>
|
|
<%= render "layouts/shared/head" %>
|
|
<%= yield :head %>
|
|
</head>
|
|
|
|
<body class="h-full overflow-hidden lg:overflow-auto antialiased">
|
|
<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">
|
|
<div id="notification-tray" class="space-y-1 w-full">
|
|
<%= render_flash_notifications %>
|
|
|
|
<div id="cta"></div>
|
|
|
|
<% if Current.family&.syncing? %>
|
|
<% render "shared/notifications/loading", id: "syncing-notice", message: "Syncing accounts data..." %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= family_stream %>
|
|
|
|
<% if Rails.env.development? %>
|
|
<div class="fixed bottom-32 left-7 flex flex-col gap-1">
|
|
<%= icon("eclipse", as_button: true, data: { action: "theme#toDark" }) %>
|
|
<%= icon("sun", as_button: true, data: { action: "theme#toLight" }) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if require_upgrade? %>
|
|
<%= render "shared/subscribe_modal" %>
|
|
<% end %>
|
|
|
|
<%= turbo_frame_tag "modal" %>
|
|
<%= turbo_frame_tag "drawer" %>
|
|
|
|
<%# Custom overrides for browser's confirm API %>
|
|
<%= render "layouts/shared/confirm_dialog" %>
|
|
|
|
<%= 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>
|