scinote-web/app/views/layouts/application.html.erb

66 lines
2.5 KiB
Plaintext
Raw Normal View History

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">
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= 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 %>
</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) %>"
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) %>"
data-file-max-size-mb="<%= Rails.configuration.x.file_max_size_mb %>"
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>
<span style="display: none;" data-hook="application-body-html"></span>
2016-10-06 22:47:36 +08:00
<!-- About us modal -->
<%= render "shared/about_modal" %>
<%= render "shared/file_preview_modal.html.erb" %>
2016-02-12 23:52:43 +08:00
<%= render "shared/navigation" %>
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-05-28 17:36:37 +08:00
<%= render "shared/left_menu_bar" if user_signed_in? && current_user.teams.exists? %>
2018-03-13 23:33:48 +08:00
<div id="content-wrapper">
2018-05-28 17:36:37 +08:00
<% if user_signed_in? && current_user.teams.empty? %>
<!-- If member of no teams -->
<div class="jumbotron">
<h2><%=t 'general.no_teams.title' %></h2>
<p data-hook="general-no-teams-text"><%=t 'general.no_teams.text' %></p>
</div>
<% else %>
<%= yield :flash_messages_div %>
<%= yield :content %>
<% end %>
2016-02-12 23:52:43 +08:00
</div>
2018-06-14 18:42:49 +08:00
<script data-hook="footer-js">
// GLOBALS
window.IN_REQUEST = false;
</script>
2016-02-12 23:52:43 +08:00
</body>
</html>