dawarich/app/views/layouts/application.html.erb

41 lines
1.6 KiB
Text
Raw Normal View History

<!DOCTYPE html>
<html data-theme="<%= app_theme %>" data-self-hosted="<%= @self_hosted %>">
<head>
2024-06-12 15:10:53 -04:00
<title><%= full_title(yield(:title)) %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= action_cable_meta_tag %>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
2024-07-21 14:09:42 -04:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/>
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
2025-09-25 12:49:31 -04:00
<% if ENV['POSTHOG_ENABLED'] == 'true' %>
<%= javascript_include_tag "posthog", "data-turbo-track": "reload" %>
<% end %>
<%= javascript_importmap_tags %>
2025-05-03 17:25:50 -04:00
<%= javascript_include_tag "https://unpkg.com/protomaps-leaflet@5.0.0/dist/protomaps-leaflet.js" %>
<%= render 'application/favicon' %>
<%= Sentry.get_trace_propagation_meta.html_safe if Sentry.initialized? %>
2025-07-14 15:26:19 -04:00
<% if !DawarichSettings.self_hosted? %>
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<% end %>
</head>
2023-10-21 06:56:46 -04:00
<body class='min-h-screen'>
<div class='container mx-auto'>
<%= render 'shared/navbar' %>
2024-01-03 06:13:00 -05:00
<%= render 'shared/flash' %>
<div class="flex flex-row gap-5 w-full px-5">
2024-03-23 16:17:23 -04:00
<%= yield %>
</div>
2025-04-11 13:13:46 -04:00
<%= render SELF_HOSTED ? 'shared/footer' : 'shared/legal_footer' %>
</div>
2025-08-13 14:25:48 -04:00
<%= render 'map/onboarding_modal' %>
</body>
</html>