-<%=
- link_to(
- t("layouts.inbox_html",
- :count => @user.new_messages.size > 0 ?
- content_tag(
- :span, @user.new_messages.size, :class => "count-number"
- ) :
- ""
- ),
- inbox_path(:display_name => @user.display_name),
- :id => "inboxanchor"
- )
-%>
+<% if current_user.new_messages.size > 0 %>
+<span id="inboxanchor" class="badge count-number m-1"><%= current_user.new_messages.size %></span>
+<% end %>