2016-02-12 23:52:43 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
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 %>">
|
|
|
|
<meta name="highlightjs-url" content="<%= asset_path('highlightjs-github-theme.css') %>">
|
2018-07-19 23:56:42 +08:00
|
|
|
<%= stylesheet_link_tag 'application', media: 'all' %>
|
|
|
|
<%= javascript_include_tag 'application' %>
|
2021-08-23 19:58:16 +08:00
|
|
|
<%= javascript_pack_tag 'application' %>
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2022-05-10 19:28:09 +08:00
|
|
|
|
2020-06-08 15:59:26 +08:00
|
|
|
<% if MarvinJsService.enabled? && ENV['MARVINJS_API_KEY'] %>
|
2019-05-08 21:00:36 +08:00
|
|
|
<script src="https://marvinjs.chemicalize.com/v1/<%= ENV['MARVINJS_API_KEY'] %>/client-settings.js"></script>
|
|
|
|
<script src="https://marvinjs.chemicalize.com/v1/client.js"></script>
|
|
|
|
<% end %>
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= favicon_link_tag "favicon.ico" %>
|
|
|
|
<%= favicon_link_tag "favicon-16.png", type: "image/png", size: "16x16" %>
|
|
|
|
<%= favicon_link_tag "favicon-32.png", type: "image/png", size: "32x32" %>
|
|
|
|
<%= favicon_link_tag "favicon-48.png", type: "image/png", size: "48x48" %>
|
2020-09-29 00:02:47 +08:00
|
|
|
<%= stylesheet_pack_tag 'fonts' %>
|
2018-03-30 17:50:28 +08:00
|
|
|
<%= stylesheet_pack_tag 'fontawesome' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
<%= csrf_meta_tags %>
|
2018-07-19 23:56:42 +08:00
|
|
|
<% if content_for?(:head) %>
|
|
|
|
<%= yield(:head) %>
|
|
|
|
<% end %>
|
2018-10-19 16:00:58 +08:00
|
|
|
|
2018-11-22 05:05:33 +08:00
|
|
|
<%= javascript_pack_tag 'tui_image_editor' %>
|
|
|
|
<%= stylesheet_pack_tag 'tui_image_editor_styles' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</head>
|
2017-01-06 19:48:37 +08:00
|
|
|
<body
|
|
|
|
class="<%= yield :body_class %>"
|
2017-01-25 19:01:23 +08:00
|
|
|
<% if user_signed_in? && current_team.present? %>
|
|
|
|
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) %>"
|
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
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render "shared/navigation" %>
|
2021-01-20 00:19:40 +08:00
|
|
|
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<%= render "shared/about_modal" %>
|
2022-08-31 21:26:10 +08:00
|
|
|
<%= render "shared/file_preview/modal" %>
|
|
|
|
<%= render "shared/file_edit_modal" %>
|
|
|
|
<%= render "shared/marvinjs_modal" %>
|
|
|
|
<%= render "shared/comments/comments_sidebar" %>
|
2021-01-20 00:19:40 +08:00
|
|
|
<% end %>
|
2019-07-26 00:00:24 +08:00
|
|
|
|
2019-02-15 20:07:29 +08:00
|
|
|
<% if user_signed_in? && flash[:system_notification_modal] && current_user.show_login_system_notification? %>
|
|
|
|
<%= render partial: "/system_notifications/system_notification_modal", locals: { notification: current_user.user_system_notifications.show_on_login(true) } %>
|
2019-02-19 18:08:59 +08:00
|
|
|
<% else %>
|
|
|
|
<%= render partial: "/system_notifications/system_notification_modal", locals: { notification: nil} %>
|
2019-02-15 20:07:29 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-02-13 16:52:45 +08:00
|
|
|
<%= render partial: 'shared/flash_alerts',
|
2018-04-25 13:32:49 +08:00
|
|
|
locals: { flash: flash, notice: notice, alert: alert } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-12-10 22:42:05 +08:00
|
|
|
<%= render "shared/left_menu_bar" if user_signed_in? %>
|
2018-05-25 23:14:22 +08:00
|
|
|
|
2018-03-13 23:33:48 +08:00
|
|
|
<div id="content-wrapper">
|
2021-07-23 17:56:28 +08:00
|
|
|
<% if user_signed_in? && current_user.teams.blank? && !(activities_are_selected? || settings_are_selected?) %>
|
2018-05-25 23:14:22 +08:00
|
|
|
<!-- If member of no teams -->
|
2018-12-10 22:42:05 +08:00
|
|
|
<div id="no-teams-jumbotron" class="jumbotron">
|
2018-05-25 23:14:22 +08:00
|
|
|
<h2><%=t 'general.no_teams.title' %></h2>
|
|
|
|
<p data-hook="general-no-teams-text"><%=t 'general.no_teams.text' %></p>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<%= yield :content %>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2017-11-08 18:59:01 +08:00
|
|
|
|
2022-07-04 19:54:22 +08:00
|
|
|
<span style="display: none;" data-hook="application-body-end-html"></span>
|
|
|
|
|
2018-06-14 18:42:49 +08:00
|
|
|
<script data-hook="footer-js">
|
2017-11-08 18:59:01 +08:00
|
|
|
// GLOBALS
|
|
|
|
window.IN_REQUEST = false;
|
|
|
|
</script>
|
2016-02-12 23:52:43 +08:00
|
|
|
</body>
|
|
|
|
</html>
|