Files
docuseal/app/views/layouts/application.html.erb
T

39 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-05-21 17:59:36 +03:00
<!DOCTYPE html>
2024-06-09 16:39:41 +03:00
<html data-theme="docuseal" lang="<%= I18n.locale %>">
2023-05-21 17:59:36 +03:00
<head>
2023-10-08 12:04:32 +03:00
<%= render 'layouts/head_tags' %>
2025-02-01 21:55:47 +02:00
<% if Docuseal.enable_pwa? %>
<link rel="manifest" href="/manifest.json">
<% end %>
2024-08-14 21:42:18 +03:00
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
2023-05-21 17:59:36 +03:00
<%= csrf_meta_tags %>
2024-05-23 17:53:42 +03:00
<% if ENV['ROLLBAR_CLIENT_TOKEN'] %>
2024-05-25 16:59:22 +03:00
<meta name="rollbar-token" content="<%= ENV.fetch('ROLLBAR_CLIENT_TOKEN', nil) %>">
2024-05-23 17:53:42 +03:00
<%= javascript_pack_tag 'rollbar', 'application', defer: true %>
2024-05-23 11:50:14 +03:00
<% else %>
<%= javascript_pack_tag 'application', defer: true %>
<% end %>
2024-11-04 11:37:58 +02:00
<% if canonical_url = content_for(:canonical_url) %>
<link href="<%= canonical_url %>" rel="canonical">
<% end %>
2023-05-21 17:59:36 +03:00
<%= stylesheet_pack_tag 'application', media: 'all' %>
</head>
2023-06-20 00:24:39 +03:00
<body>
2025-10-09 16:43:11 +03:00
<% if params[:modal].present? %>
2026-04-29 10:27:02 +03:00
<% modal_uri = Addressable::URI.parse(params[:modal]) %>
<% url_params = Rails.application.routes.recognize_path(modal_uri.path, method: :get) %>
2025-10-09 16:43:11 +03:00
<% if url_params[:action] == 'new' %>
2026-04-29 10:27:02 +03:00
<open-modal src="<%= url_for(**url_params, params: modal_uri.query_values) %>"></open-modal>
2025-10-09 16:43:11 +03:00
<% end %>
<% end %>
2023-05-21 17:59:36 +03:00
<turbo-frame id="modal"></turbo-frame>
2024-04-17 16:08:58 +03:00
<turbo-frame id="drawer"></turbo-frame>
2023-05-21 17:59:36 +03:00
<%= render 'shared/navbar' %>
2023-06-23 00:29:59 +03:00
<% if flash.present? %><%= render 'shared/flash' %><% end %>
2023-06-28 00:22:34 +03:00
<div class="max-w-6xl mx-auto px-4 md:px-2 mb-8">
2023-05-31 23:49:19 +03:00
<%= yield %>
</div>
2025-09-24 15:45:04 +03:00
<%= render 'shared/body_scripts' %>
2023-05-21 17:59:36 +03:00
</body>
</html>