app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.3.6 vs app/views/layouts/tramway/admin/shared/_navbar.html.haml in tramway-admin-1.3.7

- old
+ new

@@ -1,11 +1,13 @@ %nav.navbar.navbar-expand-md.navbar-dark.bg-dark -# FIXME use helper methods - if ::Tramway::Admin.customized_admin_navbar.present? = ::Tramway::Admin.customized_admin_navbar - else - = link_to @application&.title || t('application.title'), try(:root_path) || '/', class: 'navbar-brand' - .navbar-collapse.collapse + = link_to @application&.title || t('aplication.title'), try(:root_path) || '/', class: 'navbar-brand' + %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)&.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)&.each do |model|