]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Bump eslint from 8.24.0 to 8.25.0
[rails.git] / app / views / layouts / _inbox.html.erb
index 2af76f9ed29e357ecbd6871c9f593e9fde0e43ec..79a1db2da4fa56f150b45e343e548bd3f501464e 100644 (file)
@@ -1,7 +1,3 @@
-<%= link_to raw(t('layouts.inbox',
-    :count => @user.new_messages.size > 0 ? "<span class='count-number'>#{@user.new_messages.size}</span>" : '')),
-    {
-        :action => 'inbox',
-        :display_name => @user.display_name,
-        :controller => 'message'
-    }, { :id => 'inboxanchor' } %>
+<% if current_user.new_messages.size > 0 %>
+<span id="inboxanchor" class="count-number"><%= current_user.new_messages.size %></span>
+<% end %>