-<span id="inboxanchor" class="count-number">
- <img src='<%= user_image_url(@user, :size => 20) %>'><span><%= @user.new_messages.size %></span>
-</span>
\ No newline at end of file
+<% if @user.new_messages.size > 0 %>
+<span id="inboxanchor" class="count-number"><%= @user.new_messages.size %></span>
+<% end %>