]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Use bootstrap badges to implement count-number badges
[rails.git] / app / views / layouts / _header.html.erb
index a66715a759a285731dfe8b23763f8f2d6501eae2..fd2ae0a4a512b93bd95d32d7d46116a595828e26 100644 (file)
@@ -97,7 +97,7 @@
           <%= link_to t("users.show.my_dashboard"), dashboard_path, :class => "dropdown-item" %>
           <%= link_to inbox_messages_path, :class => "dropdown-item" do %>
             <%= t("users.show.my messages") %>
-            <span class='count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
+            <span class='badge count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
           <% end %>
           <%= link_to t("users.show.my profile"), user_path(current_user), :class => "dropdown-item" %>
           <%= link_to t("users.show.my settings"), edit_account_path, :class => "dropdown-item" %>