]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Update to iD v2.18.2
[rails.git] / app / views / layouts / _inbox.html.erb
index fbebe3fc19fc5a0f285022ef000637a574a4d573..79a1db2da4fa56f150b45e343e548bd3f501464e 100644 (file)
@@ -1 +1,3 @@
-<span id="inboxanchor" class="count-number"><%= @user.new_messages.size %></span>
\ No newline at end of file
+<% if current_user.new_messages.size > 0 %>
+<span id="inboxanchor" class="count-number"><%= current_user.new_messages.size %></span>
+<% end %>