Remove unneeded html_safe and raw calls
There's no HTML in these texts, or it has already been escaped by Rails `link_to` helper method.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="row">
|
||||
<div class="small-12 large-4 column">
|
||||
<h1 class="logo">
|
||||
<%= link_to t("layouts.header.open_gov", open: "#{t("layouts.header.open")}").html_safe %>
|
||||
<%= link_to t("layouts.header.open_gov", open: t("layouts.header.open")), root_path %>
|
||||
</h1>
|
||||
|
||||
<p class="info">
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
<span class="icon-circle" aria-hidden="true"></span>
|
||||
<span class="icon-notification" aria-hidden="true"
|
||||
title="<%= t("layouts.header.notification_item.new_notifications",
|
||||
count: current_user.notifications_count).html_safe %>">
|
||||
count: current_user.notifications_count) %>">
|
||||
</span>
|
||||
<span class="show-for-small-only">
|
||||
<%= t("layouts.header.notification_item.new_notifications",
|
||||
count: current_user.notifications_count).html_safe %>
|
||||
count: current_user.notifications_count) %>
|
||||
</span>
|
||||
<% else %>
|
||||
<span class="icon-no-notification" aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user