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">
|
2018-07-19 23:56:42 +08:00
|
|
|
<%= stylesheet_link_tag 'application', media: 'all' %>
|
|
|
|
<%= javascript_include_tag 'application' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2019-05-08 21:00:36 +08:00
|
|
|
<% if ENV['MARVINJS_API_KEY'] %>
|
|
|
|
<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" %>
|
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' %>
|
2018-10-19 16:00:58 +08:00
|
|
|
|
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) %>"
|
2018-04-03 02:38:56 +08:00
|
|
|
data-atwho-repositories-url="<%= atwho_repositories_team_path(current_team) %>"
|
|
|
|
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) %>"
|
2018-09-05 22:36:32 +08:00
|
|
|
data-tooltips-enabled="<%= current_user.settings[:tooltips_enabled] %>"
|
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
|
|
|
|
2017-07-10 21:27:50 +08:00
|
|
|
<!-- About us modal -->
|
|
|
|
<%= render "shared/about_modal" %>
|
2018-04-10 23:06:53 +08:00
|
|
|
<%= render "shared/file_preview_modal.html.erb" %>
|
2018-11-16 00:52:31 +08:00
|
|
|
<%= render "shared/file_edit_modal.html.erb" %>
|
2019-07-01 17:51:13 +08:00
|
|
|
<%= render "shared/marvinjs_modal.html.erb" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render "shared/navigation" %>
|
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
|
|
|
|
2018-04-25 13:32:49 +08:00
|
|
|
<% unless user_signed_in? %>
|
|
|
|
<%= render partial: 'shared/flash_alerts',
|
|
|
|
locals: { flash: flash, notice: notice, alert: alert } %>
|
|
|
|
<% end %>
|
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">
|
2018-12-10 22:42:05 +08:00
|
|
|
<% if user_signed_in? && current_user.teams.empty? && !(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
|
|
|
|
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>
|