app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.19.0.2 vs app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.20

- old
+ new

@@ -7,12 +7,12 @@ %button.navbar-toggler.collapsed{ aria: { controls: :navbar, expanded: "false", label: 'Toggle Navigation' }, data: { target: "#navbar", toggle: :collapse }, type: :button } %span.navbar-toggler-icon .navbar-collapse.collapse#navbar - if signed_in? %ul.navbar-nav - - ::Tramway::Admin.singleton_models_for(@application_engine || @application.name)&.each do |model| + - ::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) - - ::Tramway::Admin.available_models_for(@application_engine || @application.name)&.each do |model| + - ::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) %ul.nav.navbar-nav.ml-auto - if signed_in? - if @notifications_count > 0 %li.nav-item.dropdown.notifications