Adds text to notifications icons on header
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to notifications_path, class: "notifications", accesskey: "n" do %>
|
<%= link_to notifications_path, class: "notifications", accesskey: "n" do %>
|
||||||
|
<span class="sr-only"><%= t("layouts.header.notifications") %></span>
|
||||||
<% if current_user.notifications_count > 0 %>
|
<% if current_user.notifications_count > 0 %>
|
||||||
<span class="icon-circle" aria-hidden="true"></span>
|
<span class="icon-circle" aria-hidden="true"></span>
|
||||||
<span class="icon-notification" aria-hidden="true" title="<%= t('layouts.header.new_notifications', count: current_user.notifications_count).html_safe %>">
|
<span class="icon-notification" aria-hidden="true" title="<%= t('layouts.header.new_notifications', count: current_user.notifications_count).html_safe %>">
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ en:
|
|||||||
more_information: More information
|
more_information: More information
|
||||||
my_account_link: My account
|
my_account_link: My account
|
||||||
my_activity_link: My activity
|
my_activity_link: My activity
|
||||||
|
notifications: Notifications
|
||||||
new_notifications:
|
new_notifications:
|
||||||
one: You have a new notification
|
one: You have a new notification
|
||||||
other: You have %{count} new notifications
|
other: You have %{count} new notifications
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ es:
|
|||||||
more_information: Más información
|
more_information: Más información
|
||||||
my_account_link: Mi cuenta
|
my_account_link: Mi cuenta
|
||||||
my_activity_link: Mi actividad
|
my_activity_link: Mi actividad
|
||||||
|
notifications: Notificaciones
|
||||||
new_notifications:
|
new_notifications:
|
||||||
one: Tienes una nueva notificación
|
one: Tienes una nueva notificación
|
||||||
other: Tienes %{count} notificaciones nuevas
|
other: Tienes %{count} notificaciones nuevas
|
||||||
|
|||||||
Reference in New Issue
Block a user