app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.24.0.2 vs app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.24.0.3
- old
+ new
@@ -8,12 +8,12 @@
%span.navbar-toggler-icon
.navbar-collapse.collapse#navbar
- if signed_in?
%ul.navbar-nav
- ::Tramway::Admin.singleton_models_for(@application_engine || @application.name, role: current_user.role)&.each do |model|
- = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.singleton_path(model: model)
+ = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.singleton_path(model: model), pluralize: plural(model.model_name).capitalize
- ::Tramway::Admin.available_models_for(@application_engine || @application.name, role: current_user.role)&.each do |model|
- = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.records_path(model: model, scope: decorator_class(model).collections.first)
+ = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.records_path(model: model, scope: decorator_class(model).collections.first), pluralize: plural(model.model_name).capitalize
%ul.nav.navbar-nav.ml-auto
- if signed_in?
- if @notifications_count > 0
%li.nav-item.dropdown.notifications
= link_to '#', class: 'nav-link icon-in-navbar dropdown-toggle', id: :notifications_dropdown, role: :button, aria: { haspopup: true, expanded: false }, data: { toggle: :dropdown } do