There's no HTML in these texts, or it has already been escaped by Rails `link_to` helper method.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
<% if user_signed_in? %>
|
|
<li id="notifications">
|
|
<%= link_to notifications_path, rel: "nofollow",
|
|
class: "notifications" do %>
|
|
<span class="show-for-sr">
|
|
<%= t("layouts.header.notification_item.notifications") %>
|
|
</span>
|
|
|
|
<% if current_user.notifications.unread.count > 0 %>
|
|
<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) %>">
|
|
</span>
|
|
<span class="show-for-small-only">
|
|
<%= t("layouts.header.notification_item.new_notifications",
|
|
count: current_user.notifications_count) %>
|
|
</span>
|
|
<% else %>
|
|
<span class="icon-no-notification" aria-hidden="true"
|
|
title="<%= t("layouts.header.notification_item.no_notifications") %>">
|
|
</span>
|
|
<span class="show-for-small-only">
|
|
<%= t("layouts.header.notification_item.no_notifications") %>
|
|
</span>
|
|
<% end %>
|
|
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|