Sha256: 135ad5e0585c20a94d0594a4085fcb4c964f2e44176613f06a9dced00c8b5a01

Contents?: true

Size: 968 Bytes

Versions: 7

Compression:

Stored size: 968 Bytes

Contents

%nav.navbar.navbar-expand-md.navbar-dark.bg-dark
  = link_to @application&.title || t('application.title'), try(:root_path) || '/', class: 'navbar-brand'
  .navbar-collapse.collapse
    - if signed_in?
      %ul.navbar-nav
        - ::Tramway::Admin.singleton_models.each do |model|
          = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.singleton_path(model: model)
        - ::Tramway::Admin.available_models.each do |model|
          = model_menu_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.records_path(model: model)
    %ul.nav.navbar-nav.ml-auto
      - if signed_in?
        %li.nav-item
          = link_to '/session', method: :delete, class: 'nav-link' do
            = fa_icon 'sign-out'
            = t('helpers.links.sign_out')
      - else
        %li.nav-item
          = link_to new_session_path, class: 'nav-link' do
            = fa_icon 'sign-in'
            = t('helpers.links.enter')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tramway-admin-1.1.4.6 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4.5 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4.4 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4.3 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4.2 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4.1 app/views/layouts/tramway/admin/shared/_navbar.html.haml
tramway-admin-1.1.4 app/views/layouts/tramway/admin/shared/_navbar.html.haml