app/views/layouts/adminpanel/_side_menu.html.erb in adminpanel-2.3.0 vs app/views/layouts/adminpanel/_side_menu.html.erb in adminpanel-2.3.1
- old
+ new
@@ -16,14 +16,20 @@
<% if can?(:read, resource_class) || can?( :publish, resource_class) %>
<div class="accordion-group">
<div class="accordion-heading">
<%= link_to(
[route_symbol(resource.to_s)],
- data: { no_transition_cache: true },
+ data: {
+ no_transition_cache: true
+ },
class: "accordion-toggle accordion-navigation #{is_current_section?(resource_class.display_name)} spinner-link"
) do %>
- <%= content_tag :i, nil, class: "fa fa-#{resource_class.icon}" %>
- <%= resource_class.display_name.pluralize(I18n.default_locale) %>
+ <%= content_tag(
+ :i,
+ nil,
+ class: "fa fa-#{resource_class.icon}"
+ ) %>
+ <%= resource_class.collection_name %>
<% end %>
</div>
</div>
<% end %>
<% end %>