]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Remove simulating clicks on <a> when <li> is clicked
[rails.git] / app / views / layouts / _inbox.html.erb
index 02c22e26c1c264967ce23bc3fe4f2ae8aefd9272..2f5a63753b0bb7e249e9786576915059aaf3813b 100644 (file)
@@ -1 +1,3 @@
-<span id="inboxanchor" class="count-number"><%= @user.new_messages.size %></span>
+<% if current_user.new_messages.size > 0 %>
+<span id="inboxanchor" class="badge count-number m-1"><%= current_user.new_messages.size %></span>
+<% end %>