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:
@@ -54,6 +54,6 @@ module DocumentsHelper
|
||||
#{number_to_human_size(document.attachment_file_size)}</small>)".html_safe,
|
||||
document.attachment.url,
|
||||
target: "_blank",
|
||||
title: t("shared.target_blank_html")
|
||||
title: t("shared.target_blank")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
count: @ballot.investments.count) %>
|
||||
</h2>
|
||||
<p class="confirmed">
|
||||
<%= t("budgets.ballots.show.voted_info_html") %>
|
||||
<%= t("budgets.ballots.show.voted_info") %>
|
||||
<p>
|
||||
<p><%= t("budgets.ballots.show.voted_info_2") %></p>
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
info_link: link_to(t("debates.new.info_link"), new_proposal_path)).html_safe %>
|
||||
|
||||
<% if feature?(:help_page) %>
|
||||
<%= link_to help_path, title: t("shared.target_blank_html"), target: "_blank" do %>
|
||||
<%= link_to help_path, title: t("shared.target_blank"), target: "_blank" do %>
|
||||
<strong><%= t("debates.new.more_info") %></strong>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
label: t("devise_views.users.registrations.new.terms",
|
||||
terms: link_to(t("devise_views.users.registrations.new.terms_link"),
|
||||
"/conditions",
|
||||
title: t("shared.target_blank_html"),
|
||||
title: t("shared.target_blank"),
|
||||
target: "_blank")
|
||||
).html_safe %>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<p><%= t("devise_views.organizations.registrations.success.thank_you_html") %></p>
|
||||
<p><%= t("devise_views.organizations.registrations.success.instructions_1_html") %></p>
|
||||
<p><%= t("devise_views.organizations.registrations.success.instructions_2_html") %></p>
|
||||
<p><%= t("devise_views.organizations.registrations.success.instructions_3_html") %></p>
|
||||
<p><%= t("devise_views.organizations.registrations.success.instructions_3") %></p>
|
||||
<p>
|
||||
<%= link_to t("devise_views.organizations.registrations.success.back_to_index"),
|
||||
root_path, class: "button margin-top expanded" %>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<figure>
|
||||
<%= image_tag "help/budgets_#{I18n.locale}.png", alt: t("pages.help.budgets.image_alt") %>
|
||||
<figcaption><%= t("pages.help.budgets.figcaption_html") %></figcaption>
|
||||
<figcaption><%= t("pages.help.budgets.figcaption") %></figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<figure>
|
||||
<%= image_tag "help/proposals_#{I18n.locale}.png", alt: t("pages.help.proposals.image_alt") %>
|
||||
<figcaption><%= t("pages.help.proposals.figcaption_html") %></figcaption>
|
||||
<figcaption><%= t("pages.help.proposals.figcaption") %></figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<h1><%= t("proposals.new.start_new") %></h1>
|
||||
<div data-alert class="callout primary">
|
||||
<%= link_to help_path(anchor: "proposals"), title: t("shared.target_blank_html"), target: "_blank" do %>
|
||||
<%= link_to help_path(anchor: "proposals"), title: t("shared.target_blank"), target: "_blank" do %>
|
||||
<%= t("proposals.new.more_info") %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
title: t("devise_views.users.registrations.new.terms_title"),
|
||||
label: t("devise_views.users.registrations.new.terms",
|
||||
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions",
|
||||
title: t("shared.target_blank_html"),
|
||||
title: t("shared.target_blank"),
|
||||
target: "_blank")
|
||||
).html_safe %>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%= t("devise_views.users.registrations.success.title") %></h2>
|
||||
<p><%= t("devise_views.users.registrations.success.thank_you_html") %></p>
|
||||
<p><%= t("devise_views.users.registrations.success.instructions_1_html") %></p>
|
||||
<p><%= t("devise_views.users.registrations.success.instructions_2_html") %></p>
|
||||
<p><%= t("devise_views.users.registrations.success.instructions_2") %></p>
|
||||
<p>
|
||||
<%= link_to t("devise_views.users.registrations.success.back_to_index"),
|
||||
root_path, class: "button margin-top expanded" %>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
title: t("verification.residence.new.accept_terms_text_title"),
|
||||
label: t("verification.residence.new.accept_terms_text",
|
||||
terms_url: link_to(t("verification.residence.new.terms"), "/census_terms",
|
||||
title: t("shared.target_blank_html"),
|
||||
title: t("shared.target_blank"),
|
||||
target: "_blank")
|
||||
).html_safe %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user