2016-02-12 23:52:43 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2023-07-05 19:19:16 +08:00
|
|
|
<%= csp_meta_tag %>
|
2016-10-06 22:47:36 +08:00
|
|
|
<meta data-hook="head-js">
|
2016-02-12 23:52:43 +08:00
|
|
|
<title><%=t "head.title", title: (yield :head_title) %></title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
2020-02-11 22:58:17 +08:00
|
|
|
<meta name="max-file-size" content="<%= Rails.configuration.x.file_max_size_mb %>">
|
2022-05-10 19:28:09 +08:00
|
|
|
<meta name="tiny-mce-assets-url" content="<%= tiny_mce_assets_path %>">
|
2022-08-08 18:24:50 +08:00
|
|
|
<% if user_signed_in? %>
|
|
|
|
<meta name="expiration-url" content="<%= users_expire_in_path %>">
|
|
|
|
<meta name="revive-url" content="<%= users_revive_session_path %>">
|
|
|
|
<% end %>
|
2023-04-04 17:25:58 +08:00
|
|
|
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
|
2023-08-21 21:26:58 +08:00
|
|
|
<%= stylesheet_link_tag 'bootstrap_pack', media: 'all' %>
|
2023-07-07 17:44:42 +08:00
|
|
|
<%= stylesheet_link_tag 'application_pack_styles', media: 'all' %>
|
2023-05-18 20:20:20 +08:00
|
|
|
<% if ::NewRelic::Agent.instance.started? %>
|
2023-05-22 17:43:19 +08:00
|
|
|
<%= ::NewRelic::Agent.browser_timing_header(controller.request.content_security_policy_nonce) %>
|
2023-05-18 20:20:20 +08:00
|
|
|
<% end %>
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'jquery_bundle' %>
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= javascript_include_tag 'application_pack' %>
|
2023-08-09 20:02:31 +08:00
|
|
|
|
2022-09-05 17:29:19 +08:00
|
|
|
<%= javascript_include_tag 'application' %>
|
2022-08-08 18:24:50 +08:00
|
|
|
<%= javascript_include_tag 'session_end' %>
|
2023-04-14 17:38:28 +08:00
|
|
|
<%= javascript_include_tag 'sidebar_toggle' %>
|
2023-11-07 23:10:17 +08:00
|
|
|
<%= stylesheet_link_tag 'application_pack', media: 'all' %>
|
2023-08-10 20:32:35 +08:00
|
|
|
<%= stylesheet_link_tag 'application', media: 'all' %>
|
2022-05-10 19:28:09 +08:00
|
|
|
|
2023-03-22 16:42:54 +08:00
|
|
|
|
2020-06-08 15:59:26 +08:00
|
|
|
<% if MarvinJsService.enabled? && ENV['MARVINJS_API_KEY'] %>
|
2023-08-02 17:17:34 +08:00
|
|
|
<%= javascript_include_tag "https://marvinjs.chemicalize.com/v1/#{ ENV['MARVINJS_API_KEY'] }/client-settings.js", nonce: true, async: true %>
|
|
|
|
<%= javascript_include_tag 'https://marvinjs.chemicalize.com/v1/client.js', nonce: true, async: true %>
|
2019-05-08 21:00:36 +08:00
|
|
|
<% end %>
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= favicon_link_tag "favicon.ico" %>
|
2023-10-27 22:02:45 +08:00
|
|
|
<%= favicon_link_tag "favicon-57x57.png", type: "image/png", size: "57x57" %>
|
|
|
|
<%= favicon_link_tag "favicon-72x72.png", type: "image/png", size: "72x72" %>
|
|
|
|
<%= favicon_link_tag "favicon-76x76.png", type: "image/png", size: "76x76" %>
|
|
|
|
<%= favicon_link_tag "favicon-114x114.png", type: "image/png", size: "114x114" %>
|
|
|
|
<%= favicon_link_tag "favicon-120x120.png", type: "image/png", size: "120x120" %>
|
|
|
|
<%= favicon_link_tag "favicon-144x144.png", type: "image/png", size: "144x144" %>
|
|
|
|
<%= favicon_link_tag "favicon-152x152.png", type: "image/png", size: "152x152" %>
|
|
|
|
<%= favicon_link_tag "favicon-180x180.png", type: "image/png", size: "180x180" %>
|
|
|
|
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= stylesheet_link_tag 'fontawesome' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= stylesheet_link_tag 'prism' %>
|
2023-03-01 22:21:01 +08:00
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= csrf_meta_tags %>
|
2023-11-20 18:38:41 +08:00
|
|
|
|
|
|
|
<meta id="preview-directive" name="turbolinks-cache-control" content="no-preview">
|
2018-07-19 23:56:42 +08:00
|
|
|
<% if content_for?(:head) %>
|
|
|
|
<%= yield(:head) %>
|
|
|
|
<% end %>
|
2018-10-19 16:00:58 +08:00
|
|
|
|
2023-11-20 18:38:41 +08:00
|
|
|
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'tui_image_editor' %>
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= stylesheet_link_tag 'tui_image_editor_styles' %>
|
2023-04-19 20:16:22 +08:00
|
|
|
<%= javascript_include_tag 'vue_navigation_navigator' %>
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'vue_navigation_top_menu' %>
|
2023-10-30 22:14:12 +08:00
|
|
|
<%= javascript_include_tag 'vue_legacy_datetime_picker' %>
|
2023-09-13 14:16:26 +08:00
|
|
|
|
2023-10-12 20:40:13 +08:00
|
|
|
<style> :root { --navigator-navigation-width: <%= session[:navigator_width] || Constants::DEFAULT_NAV_WIDTH %>px; } </style>
|
2016-02-12 23:52:43 +08:00
|
|
|
</head>
|
2017-01-06 19:48:37 +08:00
|
|
|
<body
|
2023-07-18 15:52:36 +08:00
|
|
|
class="<%= yield :body_class %> <%= 'navigator-collapsed' if !@navigator || session[:navigator_collapsed] %> <%= 'w-[98%]' if params[:controller] == 'label_templates' && params[:action] == 'show'%>"
|
2017-01-25 19:01:23 +08:00
|
|
|
<% if user_signed_in? && current_team.present? %>
|
2023-04-21 18:25:42 +08:00
|
|
|
data-current-team-id="<%= current_team.id %>"
|
2017-01-25 19:01:23 +08:00
|
|
|
data-atwho-users-url="<%= atwho_users_team_path(current_team) %>"
|
|
|
|
data-atwho-task-url="<%= atwho_my_modules_team_path(current_team) %>"
|
|
|
|
data-atwho-project-url="<%= atwho_projects_team_path(current_team) %>"
|
|
|
|
data-atwho-experiment-url="<%= atwho_experiments_team_path(current_team) %>"
|
2020-09-04 22:48:53 +08:00
|
|
|
data-atwho-repositories-url="<%= atwho_menu_team_path(current_team) %>"
|
2018-04-03 02:38:56 +08:00
|
|
|
data-atwho-rep-items-url="<%= atwho_rep_items_team_path(current_team) %>"
|
2017-01-25 19:01:23 +08:00
|
|
|
data-atwho-menu-items="<%= atwho_menu_items_team_path(current_team) %>"
|
2023-06-09 15:24:32 +08:00
|
|
|
data-datetime-picker-format="<%= datetime_picker_format_date_only %>"
|
2023-10-25 19:16:34 +08:00
|
|
|
data-datetime-picker-format-vue="<%= datetime_picker_format_date_only_vue %>"
|
2017-01-06 19:48:37 +08:00
|
|
|
<% end %>
|
|
|
|
>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2016-10-06 22:47:36 +08:00
|
|
|
<span style="display: none;" data-hook="body-js"></span>
|
2016-10-28 16:36:15 +08:00
|
|
|
<span style="display: none;" data-hook="application-body-html"></span>
|
2016-10-06 22:47:36 +08:00
|
|
|
|
2023-04-14 17:38:28 +08:00
|
|
|
<div class="sci--layout"
|
2023-09-29 19:49:12 +08:00
|
|
|
data-grey-background="<%= show_grey_background? %>"
|
2023-04-19 16:53:39 +08:00
|
|
|
data-breadcrumbs-collapsed="<%= !@breadcrumbs_items.present? %>"
|
2023-04-19 20:16:22 +08:00
|
|
|
data-navigator-collapsed="<%= !@navigator || session[:navigator_collapsed] %>"
|
2023-04-18 16:50:16 +08:00
|
|
|
data-left-navigation-collapsed=<%= !user_signed_in? %>
|
2023-04-14 17:38:28 +08:00
|
|
|
>
|
2023-03-22 16:42:54 +08:00
|
|
|
<div class="sci--layout-navigation-top" >
|
2023-03-16 19:54:24 +08:00
|
|
|
<%= render "shared/navigation/top" %>
|
|
|
|
</div>
|
|
|
|
<div class="sci--layout-navigation-left">
|
|
|
|
<%= render "shared/navigation/left" if user_signed_in? %>
|
|
|
|
</div>
|
2023-10-20 16:05:42 +08:00
|
|
|
<div class="sci--layout-navigation-navigator overflow-hidden relative" data-e2e="e2e-CO-projects-navigator">
|
2023-03-16 19:54:24 +08:00
|
|
|
<%= render "shared/navigation/navigator" %>
|
|
|
|
</div>
|
|
|
|
<div class="sci--layout-navigation-breadcrumbs">
|
|
|
|
<%= render "shared/navigation/breadcrumbs" %>
|
|
|
|
</div>
|
|
|
|
<div class="sci--layout-content">
|
|
|
|
<% if user_signed_in? && current_user.teams.blank? && !(activities_are_selected? || settings_are_selected?) %>
|
|
|
|
<!-- If member of no teams -->
|
|
|
|
<div id="no-teams-jumbotron" class="jumbotron">
|
2023-08-07 18:31:30 +08:00
|
|
|
<%= image_tag "/images/not-part-of-any-team.png" %>
|
2023-03-16 19:54:24 +08:00
|
|
|
<h2><%=t 'general.no_teams.title' %></h2>
|
2023-05-31 06:09:21 +08:00
|
|
|
<p class="no-teams-info"><%=t 'general.no_teams.text' %></p>
|
2023-03-16 19:54:24 +08:00
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<%= yield :content %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2023-05-05 21:47:53 +08:00
|
|
|
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render "shared/comments/comments_sidebar" %>
|
2023-10-02 22:11:32 +08:00
|
|
|
<%= render "shared/item_relationships_modal" %>
|
2023-11-12 18:21:05 +08:00
|
|
|
<%= render "shared/repository_item_relationships_modal" %>
|
2023-09-18 22:24:07 +08:00
|
|
|
<%= render "shared/repository_row_sidebar" %>
|
2023-03-16 19:54:24 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= render partial: 'shared/flash_alerts',
|
|
|
|
locals: { flash: flash, notice: notice, alert: alert } %>
|
2021-01-20 00:19:40 +08:00
|
|
|
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<%= render "shared/about_modal" %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render "shared/file_preview/modal" %>
|
|
|
|
<%= render "shared/file_edit_modal" %>
|
|
|
|
<%= render "shared/marvinjs_modal" %>
|
2023-08-02 20:13:04 +08:00
|
|
|
<%= render "shared/iframe_modal" %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render "users/sessions/session_expire_modal" %>
|
|
|
|
<%= render "users/sessions/session_end_modal" %>
|
2023-06-22 20:52:47 +08:00
|
|
|
<%= render "label_printers/label_printer_modal" %>
|
2023-09-28 20:45:28 +08:00
|
|
|
<%= render "shared/export_stock_consumption_modal" %>
|
2021-01-20 00:19:40 +08:00
|
|
|
<% end %>
|
2019-07-26 00:00:24 +08:00
|
|
|
|
2022-07-04 19:54:22 +08:00
|
|
|
<span style="display: none;" data-hook="application-body-end-html"></span>
|
|
|
|
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= javascript_include_tag 'prism' %>
|
2023-09-13 14:16:26 +08:00
|
|
|
<%= javascript_include_tag "vue_components_repository_item_sidebar" %>
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
</body>
|
|
|
|
</html>
|