]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_inbox.html.erb
Remove "Sign up" and "Log in" from application bar when sessions or user controller...
[rails.git] / app / views / layouts / _inbox.html.erb
index 787dd8bfc496bdc4d814316ea8cb1d757a5d9dac..2f5a63753b0bb7e249e9786576915059aaf3813b 100644 (file)
@@ -1,3 +1,3 @@
-<span id="inboxanchor" class="count-number">
-  <img src='<%= user_image_url(@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="badge count-number m-1"><%= current_user.new_messages.size %></span>
+<% end %>