]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Use rails 5 version of redirect_back.
[rails.git] / app / views / layouts / _inbox.html.erb
index 02c22e26c1c264967ce23bc3fe4f2ae8aefd9272..cdd708e1cb5a0508ca6981b148f53c1ae42c4e41 100644 (file)
@@ -1 +1,3 @@
+<% if @user.new_messages.size > 0 %>
 <span id="inboxanchor" class="count-number"><%= @user.new_messages.size %></span>
+<% end %>