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

78 lines
3.1 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" %>
<%= 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-sample-url="<%= atwho_samples_team_path(current_team) %>"
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>
<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" %>
2016-02-12 23:52:43 +08:00
<%= render "shared/navigation" %>
<div id="notifications">
<% if flash[:success] %>
<div id="alert-flash" class="alert alert-success alert-dismissable alert-floating">
2016-02-12 23:52:43 +08:00
<div class="container">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-ok-sign"></span>
<span><%= sanitize_input(flash[:success]) %></span>
2016-02-12 23:52:43 +08:00
</div>
</div>
<% end %>
<% if notice %>
<div id="alert-flash" class="alert alert-info alert-dismissable alert-floating">
2016-02-12 23:52:43 +08:00
<div class="container">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-info-sign"></span>
<span><%= notice %></span>
</div>
</div>
<% end %>
<% if alert and !alert.empty? or flash[:error]%>
<div id="alert-flash" class="alert alert-danger alert-dismissable alert-floating">
2016-02-12 23:52:43 +08:00
<div class="container">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-exclamation-sign"></span>
<span><%= alert || sanitize_input(flash[:error]) %></span>
2016-02-12 23:52:43 +08:00
</div>
</div>
<% end %>
</div>
2018-03-15 00:55:04 +08:00
<%= render "shared/left_menu_bar" if user_signed_in? %>
2018-03-13 23:33:48 +08:00
<div id="content-wrapper">
2016-02-12 23:52:43 +08:00
<%= yield :content %>
</div>
<script>
// GLOBALS
window.IN_REQUEST = false;
</script>
2016-02-12 23:52:43 +08:00
</body>
</html>