]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Merge remote-tracking branch 'upstream/pull/3379'
[rails.git] / app / views / layouts / _inbox.html.erb
index d4054dfaf04913736938c2ae0d7d18780c3f0e46..79a1db2da4fa56f150b45e343e548bd3f501464e 100644 (file)
@@ -1,3 +1,3 @@
-<span id="inboxanchor" class="count-number">
-  <%= user_thumbnail_tiny(@user, :size => 20, :width => 20, :height => 20) %><span><%= @user.new_messages.size %></span>
-</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 %>