Use double quotes in app/views/layouts
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<%= render "shared/locale_switcher" %>
|
<%= render "shared/locale_switcher" %>
|
||||||
|
|
||||||
<%= link_to root_path, class: "float-right" do %>
|
<%= link_to root_path, class: "float-right" do %>
|
||||||
<%= t("admin.dashboard.index.back", org: setting['org_name']) %>
|
<%= t("admin.dashboard.index.back", org: setting["org_name"]) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<title><%= content_for?(:title) ? yield(:title) : default_title %></title>
|
<title><%= content_for?(:title) ? yield(:title) : default_title %></title>
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= stylesheet_link_tag "application" %>
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
<%= favicon_link_tag "favicon.ico" %>
|
||||||
<%= render "layouts/disable_animations_in_tests" if Rails.env.test? %>
|
<%= render "layouts/disable_animations_in_tests" if Rails.env.test? %>
|
||||||
|
|||||||
@@ -26,56 +26,56 @@
|
|||||||
<div class="small-12 medium-8 column">
|
<div class="small-12 medium-8 column">
|
||||||
<%= t("layouts.footer.copyright", year: Time.current.year) %> |
|
<%= t("layouts.footer.copyright", year: Time.current.year) %> |
|
||||||
<ul class="no-bullet inline-block">
|
<ul class="no-bullet inline-block">
|
||||||
<li class="inline-block"><%= link_to t("layouts.footer.privacy"), page_path('privacy') %> |</li>
|
<li class="inline-block"><%= link_to t("layouts.footer.privacy"), page_path("privacy") %> |</li>
|
||||||
<li class="inline-block"><%= link_to t("layouts.footer.conditions"), page_path('conditions') %> |</li>
|
<li class="inline-block"><%= link_to t("layouts.footer.conditions"), page_path("conditions") %> |</li>
|
||||||
<li class="inline-block"><%= link_to t("layouts.footer.accessibility"), page_path('accessibility') %></li>
|
<li class="inline-block"><%= link_to t("layouts.footer.accessibility"), page_path("accessibility") %></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="small-12 medium-4 column social">
|
<div class="small-12 medium-4 column social">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<ul>
|
<ul>
|
||||||
<% if setting['twitter_handle'] %>
|
<% if setting["twitter_handle"] %>
|
||||||
<li class="inline-block">
|
<li class="inline-block">
|
||||||
<%= link_to "https://twitter.com/#{setting['twitter_handle']}", target: "_blank",
|
<%= link_to "https://twitter.com/#{setting['twitter_handle']}", target: "_blank",
|
||||||
title: t("shared.go_to_page") + t("social.twitter", org: setting['org_name']) + t('shared.target_blank_html') do %>
|
title: t("shared.go_to_page") + t("social.twitter", org: setting["org_name"]) + t("shared.target_blank_html") do %>
|
||||||
<span class="show-for-sr"><%= t("social.twitter", org: setting['org_name']) %></span>
|
<span class="show-for-sr"><%= t("social.twitter", org: setting["org_name"]) %></span>
|
||||||
<span class="icon-twitter" aria-hidden="true"></span>
|
<span class="icon-twitter" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if setting['facebook_handle'] %>
|
<% if setting["facebook_handle"] %>
|
||||||
<li class="inline-block">
|
<li class="inline-block">
|
||||||
<%= link_to "https://www.facebook.com/#{setting['facebook_handle']}/", target: "_blank",
|
<%= link_to "https://www.facebook.com/#{setting['facebook_handle']}/", target: "_blank",
|
||||||
title: t("shared.go_to_page") + t("social.facebook", org: setting['org_name']) + t('shared.target_blank_html') do %>
|
title: t("shared.go_to_page") + t("social.facebook", org: setting["org_name"]) + t("shared.target_blank_html") do %>
|
||||||
<span class="show-for-sr"><%= t("social.facebook", org: setting['org_name']) %></span>
|
<span class="show-for-sr"><%= t("social.facebook", org: setting["org_name"]) %></span>
|
||||||
<span class="icon-facebook" aria-hidden="true"></span>
|
<span class="icon-facebook" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if setting['youtube_handle'] %>
|
<% if setting["youtube_handle"] %>
|
||||||
<li class="inline-block">
|
<li class="inline-block">
|
||||||
<%= link_to "https://www.youtube.com/#{setting['youtube_handle']}", target: "_blank",
|
<%= link_to "https://www.youtube.com/#{setting['youtube_handle']}", target: "_blank",
|
||||||
title: t("shared.go_to_page") + t("social.youtube", org: setting['org_name']) + t('shared.target_blank_html') do %>
|
title: t("shared.go_to_page") + t("social.youtube", org: setting["org_name"]) + t("shared.target_blank_html") do %>
|
||||||
<span class="show-for-sr"><%= t("social.youtube", org: setting['org_name']) %></span>
|
<span class="show-for-sr"><%= t("social.youtube", org: setting["org_name"]) %></span>
|
||||||
<span class="icon-youtube" aria-hidden="true"></span>
|
<span class="icon-youtube" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if setting['telegram_handle'] %>
|
<% if setting["telegram_handle"] %>
|
||||||
<li class="inline-block">
|
<li class="inline-block">
|
||||||
<%= link_to "https://www.telegram.me/#{setting['telegram_handle']}", target: "_blank",
|
<%= link_to "https://www.telegram.me/#{setting['telegram_handle']}", target: "_blank",
|
||||||
title: t("shared.go_to_page") + t("social.telegram", org: setting['org_name']) + t('shared.target_blank_html') do %>
|
title: t("shared.go_to_page") + t("social.telegram", org: setting["org_name"]) + t("shared.target_blank_html") do %>
|
||||||
<span class="show-for-sr"><%= t("social.telegram", org: setting['org_name']) %></span>
|
<span class="show-for-sr"><%= t("social.telegram", org: setting["org_name"]) %></span>
|
||||||
<span class="icon-telegram" aria-hidden="true"></span>
|
<span class="icon-telegram" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if setting['instagram_handle'] %>
|
<% if setting["instagram_handle"] %>
|
||||||
<li class="inline-block">
|
<li class="inline-block">
|
||||||
<%= link_to "https://www.instagram.com/#{setting['instagram_handle']}", target: "_blank",
|
<%= link_to "https://www.instagram.com/#{setting['instagram_handle']}", target: "_blank",
|
||||||
title: t("shared.go_to_page") + t("social.instagram", org: setting['org_name']) + t('shared.target_blank_html') do %>
|
title: t("shared.go_to_page") + t("social.instagram", org: setting["org_name"]) + t("shared.target_blank_html") do %>
|
||||||
<span class="show-for-sr"><%= t("social.instagram", org: setting['org_name']) %></span>
|
<span class="show-for-sr"><%= t("social.instagram", org: setting["org_name"]) %></span>
|
||||||
<span class="icon-instagram" aria-hidden="true"></span>
|
<span class="icon-instagram" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<div class="top-bar-title">
|
<div class="top-bar-title">
|
||||||
<%= link_to root_path, accesskey: "0" do %>
|
<%= link_to root_path, accesskey: "0" do %>
|
||||||
<%= image_tag(image_path_for('logo_header.png'), class: 'float-left', alt: t("layouts.header.logo")) %>
|
<%= image_tag(image_path_for("logo_header.png"), class: "float-left", alt: t("layouts.header.logo")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; border-top: 1px solid #dadfe1; padding-top: 20px;">
|
<td style="text-align: center; border-top: 1px solid #dadfe1; padding-top: 20px;">
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin: 0;padding: 0;line-height: 1.5em;color: #797f7f; font-size: 12px;">
|
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin: 0;padding: 0;line-height: 1.5em;color: #797f7f; font-size: 12px;">
|
||||||
<%= setting['org_name'] %></p>
|
<%= setting["org_name"] %></p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin: 0;padding: 0;line-height: 1.5em;color: #222; font-size: 10px; margin-top: 12px;">
|
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin: 0;padding: 0;line-height: 1.5em;color: #222; font-size: 10px; margin-top: 12px;">
|
||||||
<%= t('mailers.no_reply') %></p>
|
<%= t("mailers.no_reply") %></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border-bottom: 1px solid #dadfe1; padding: 20px 0;">
|
<td style="border-bottom: 1px solid #dadfe1; padding: 20px 0;">
|
||||||
<a href="#" target="_blank">
|
<a href="#" target="_blank">
|
||||||
<%= image_tag('logo_email.png', style: "border: 0; display: block; width: 100%;max-width: 370px", alt: setting['org_name']) %>
|
<%= image_tag("logo_email.png", style: "border: 0; display: block; width: 100%;max-width: 370px", alt: setting["org_name"]) %>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="off-canvas-content" data-off-canvas-content>
|
<div class="off-canvas-content" data-off-canvas-content>
|
||||||
<%= render 'layouts/admin_header' %>
|
<%= render "layouts/admin_header" %>
|
||||||
|
|
||||||
<div class="no-margin-top row expanded collapse" data-equalizer>
|
<div class="no-margin-top row expanded collapse" data-equalizer>
|
||||||
<div class="small-12 medium-3 column" data-equalizer-watch>
|
<div class="small-12 medium-3 column" data-equalizer-watch>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="admin-content small-12 medium-9 column" data-equalizer-watch>
|
<div class="admin-content small-12 medium-9 column" data-equalizer-watch>
|
||||||
<%= render 'layouts/flash' %>
|
<%= render "layouts/flash" %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
||||||
<head>
|
<head>
|
||||||
<%= render "layouts/common_head", default_title: setting['org_name'] %>
|
<%= render "layouts/common_head", default_title: setting["org_name"] %>
|
||||||
<%= render "layouts/tracking_data" %>
|
<%= render "layouts/tracking_data" %>
|
||||||
<%= render "layouts/meta_tags" %>
|
<%= render "layouts/meta_tags" %>
|
||||||
<%= content_for :canonical %>
|
<%= content_for :canonical %>
|
||||||
@@ -14,18 +14,18 @@
|
|||||||
type: "image/png" %>
|
type: "image/png" %>
|
||||||
<%= content_for :social_media_meta_tags %>
|
<%= content_for :social_media_meta_tags %>
|
||||||
|
|
||||||
<%= setting['per_page_code_head'].try(:html_safe) %>
|
<%= setting["per_page_code_head"].try(:html_safe) %>
|
||||||
</head>
|
</head>
|
||||||
<body class="<%= yield (:body_class) %>">
|
<body class="<%= yield (:body_class) %>">
|
||||||
<%= setting['per_page_code_body'].try(:html_safe) %>
|
<%= setting["per_page_code_body"].try(:html_safe) %>
|
||||||
|
|
||||||
<h1 class="show-for-sr"><%= setting['org_name'] %></h1>
|
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>
|
||||||
|
|
||||||
<div class="wrapper <%= yield (:wrapper_class) %>">
|
<div class="wrapper <%= yield (:wrapper_class) %>">
|
||||||
<%= render 'layouts/header' %>
|
<%= render "layouts/header" %>
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<% if browser.ie? && cookies['ie_alert_closed'] != 'true' %>
|
<% if browser.ie? && cookies["ie_alert_closed"] != "true" %>
|
||||||
<div data-alert class="callout primary ie-callout" data-closable>
|
<div data-alert class="callout primary ie-callout" data-closable>
|
||||||
<button class="close-button ie-callout-close-js"
|
<button class="close-button ie-callout-close-js"
|
||||||
aria-label="<%= t("application.close") %>" type="button" data-close>
|
aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||||
@@ -44,13 +44,13 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<%= render 'layouts/flash' %>
|
<%= render "layouts/flash" %>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
<div class="push"></div>
|
<div class="push"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<%= render 'layouts/footer' %>
|
<%= render "layouts/footer" %>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div class="auth-image small-12 medium-3 column">
|
<div class="auth-image small-12 medium-3 column">
|
||||||
<h1 class="logo margin">
|
<h1 class="logo margin">
|
||||||
<%= link_to root_path do %>
|
<%= link_to root_path do %>
|
||||||
<%= image_tag(image_path_for('logo_header.png'), class: 'float-left', alt: t("layouts.header.logo")) %>
|
<%= image_tag(image_path_for("logo_header.png"), class: "float-left", alt: t("layouts.header.logo")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 medium-9 large-7 small-centered column">
|
<div class="small-12 medium-9 large-7 small-centered column">
|
||||||
<div class="auth-form margin">
|
<div class="auth-form margin">
|
||||||
<%= render 'layouts/flash' %>
|
<%= render "layouts/flash" %>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<%= render 'layouts/footer' %>
|
<%= render "layouts/footer" %>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<%= render "management/account_info" %>
|
<%= render "management/account_info" %>
|
||||||
|
|
||||||
<div class="admin-content small-12 medium-9 column">
|
<div class="admin-content small-12 medium-9 column">
|
||||||
<%= render 'layouts/flash' %>
|
<%= render "layouts/flash" %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user