Remove unneeded _html suffix in I18n keys
This suffix does the same thing as calling `.html_safe` on them. So we don't need to use it in texts that don't use HTML.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<% if setting["twitter_handle"] %>
|
||||
<li class="inline-block">
|
||||
<%= 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") do %>
|
||||
<span class="show-for-sr"><%= t("social.twitter", org: setting["org_name"]) %></span>
|
||||
<span class="icon-twitter" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -47,7 +47,7 @@
|
||||
<% if setting["facebook_handle"] %>
|
||||
<li class="inline-block">
|
||||
<%= 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") do %>
|
||||
<span class="show-for-sr"><%= t("social.facebook", org: setting["org_name"]) %></span>
|
||||
<span class="icon-facebook" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -56,7 +56,7 @@
|
||||
<% if setting["youtube_handle"] %>
|
||||
<li class="inline-block">
|
||||
<%= 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") do %>
|
||||
<span class="show-for-sr"><%= t("social.youtube", org: setting["org_name"]) %></span>
|
||||
<span class="icon-youtube" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -65,7 +65,7 @@
|
||||
<% if setting["telegram_handle"] %>
|
||||
<li class="inline-block">
|
||||
<%= 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") do %>
|
||||
<span class="show-for-sr"><%= t("social.telegram", org: setting["org_name"]) %></span>
|
||||
<span class="icon-telegram" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -74,7 +74,7 @@
|
||||
<% if setting["instagram_handle"] %>
|
||||
<li class="inline-block">
|
||||
<%= 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") do %>
|
||||
<span class="show-for-sr"><%= t("social.instagram", org: setting["org_name"]) %></span>
|
||||
<span class="icon-instagram" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
<p>
|
||||
<%= t("layouts.application.ie",
|
||||
chrome: link_to(
|
||||
t("layouts.application.chrome"), "https://www.google.com/chrome/browser/desktop/", title: t("shared.target_blank_html"), target: "_blank"),
|
||||
t("layouts.application.chrome"), "https://www.google.com/chrome/browser/desktop/", title: t("shared.target_blank"), target: "_blank"),
|
||||
firefox: link_to(
|
||||
t("layouts.application.firefox"), "https://www.mozilla.org/firefox", title: t("shared.target_blank_html"), target: "_blank")
|
||||
t("layouts.application.firefox"), "https://www.mozilla.org/firefox", title: t("shared.target_blank"), target: "_blank")
|
||||
).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user