82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
|
<%= stylesheet_link_tag "application" %>
|
|
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
|
<%= csrf_meta_tags %>
|
|
<%= favicon_link_tag "favicon.ico" %>
|
|
<%= favicon_link_tag "apple-touch-icon-200.png",
|
|
rel: "apple-touch-icon",
|
|
sizes: "200x200",
|
|
type: "image/png" %>
|
|
<%= content_for :social_media_meta_tags %>
|
|
|
|
<%= setting['per_page_code'].try(:html_safe) %>
|
|
|
|
<% if Rails.env.test? %>
|
|
<%= javascript_tag "$.fx.off = true;" %>
|
|
<% end %>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<%= render 'layouts/header' %>
|
|
|
|
<!--[if lt IE 9]>
|
|
<% if browser.ie? && cookies['ie_alert_closed'] != 'true' %>
|
|
<div data-alert class="callout primary ie-callout" data-closable>
|
|
<button class="close-button ie-callout-close-js"
|
|
aria-label="<%= t("application.close") %>" type="button" data-close>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h2><%= t("layouts.application.ie_title") %></h2>
|
|
<p>
|
|
<%= t("layouts.application.ie",
|
|
chrome: link_to(
|
|
t("layouts.application.chrome"), "https://www.google.com/chrome/browser/desktop/", target: "_blank"),
|
|
firefox: link_to(
|
|
t("layouts.application.firefox"), "https://www.mozilla.org/firefox", target: "_blank")
|
|
).html_safe %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
<![endif]-->
|
|
|
|
<% if notice %>
|
|
<div id="notice" data-alert class="row" data-closable>
|
|
<div class="callout success">
|
|
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<%= notice %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if alert %>
|
|
<div id="alert" data-alert class="row" data-closable>
|
|
<div class="callout alert">
|
|
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<%= alert %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
<div class="push"></div>
|
|
</div>
|
|
<div class="footer">
|
|
<%= render 'layouts/footer' %>
|
|
</div>
|
|
</body>
|
|
<!--[if lt IE 9]>
|
|
<%= javascript_include_tag "ie_lt9" %>
|
|
<![endif]-->
|
|
</html>
|