mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 07:14:47 +00:00
* Initial impersonation * Impersonation audit * Keep super admin separate * Remove vscode settings * Comment cleanup * Comment out impersonation fixtures for now * Remove unused controlelr * Add impersonation testing (#1326) * Add impersonation testing * Remove unused method * Update schema.rb * Update brakeman --------- Co-authored-by: Zach Gollwitzer <zach@maybe.co>
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html class="h-full" lang="en">
|
|
<head>
|
|
<title><%= content_for(:title) || "Maybe" %></title>
|
|
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
|
|
<%= javascript_importmap_tags %>
|
|
<%= hotwire_livereload_tags if Rails.env.development? %>
|
|
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
|
|
|
|
<meta name="viewport"
|
|
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<meta name="apple-mobile-web-app-title" content="Maybe">
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<%= yield :head %>
|
|
</head>
|
|
|
|
<body class="h-full">
|
|
<%= render "impersonation_sessions/super_admin_bar" if Current.true_user&.super_admin? %>
|
|
<%= render "impersonation_sessions/approval_bar" if Current.true_user&.impersonated_support_sessions&.initiated&.any? %>
|
|
|
|
<div class="fixed z-50 space-y-1 top-6 right-10">
|
|
<div id="notification-tray">
|
|
<%= render_flash_notifications %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= family_notifications_stream %>
|
|
<%= family_stream %>
|
|
|
|
<%= content_for?(:content) ? yield(:content) : yield %>
|
|
|
|
<%= turbo_frame_tag "modal" %>
|
|
<%= turbo_frame_tag "drawer" %>
|
|
|
|
<%= render "shared/confirm_modal" %>
|
|
|
|
<% if self_hosted? %>
|
|
<%= render "shared/app_version" %>
|
|
<% end %>
|
|
</body>
|
|
</html>
|