Sha256: b446834f1178b32e7971c8333e0b6994b523169cb36fd80403afd4c0d0bd5d91

Contents?: true

Size: 1.87 KB

Versions: 7

Compression:

Stored size: 1.87 KB

Contents

%nav.navbar.navbar-expand-lg.navbar-light.bg-light
  = link_to '/', class: 'navbar-brand' do
     = '<%= app_name.titleize %>'
  %button.navbar-toggler{"aria-controls" => "navbarNav", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarNav", "data-toggle" => "collapse", :type => "button"}
    %span.navbar-toggler-icon
  #navbarNav.collapse.navbar-collapse
    %ul.navbar-nav
      %li.nav-item.active
        %a.nav-link{:href => "/"}
          Home
          %span.sr-only (current)
      %li.nav-item
        %a.nav-link{:href => "#"} Features
      %li.nav-item
        %a.nav-link{:href => "#"} Pricing
      %li.nav-item
        %a.nav-link.disabled{:href => "#"} Disabled
<%- unless options[:noauth] -%>
    %ul.nav.navbar-nav.ml-auto
      - if user_signed_in?
        - if current_user.staff_member?
          %li.nav-item
            = link_to 'admin', admin_root_path, class: 'nav-link'
        %li.nav-item.dropdown
          %a#navbarDropdown.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"}
            = current_user.email
          .dropdown-menu.dropdown-menu-right{"aria-labelledby" => "navbarDropdown"}
            = link_to "#{icon('fas', 'user-circle mr-1')} Edit Account".html_safe, edit_user_registration_path, class: 'dropdown-item'
            - if current_user != true_user
              = link_to stop_impersonating_users_path, method: :post, class: 'dropdown-item', title: 'Stop impersonating user' do
                == "#{icon('fas','theater-masks')} Stop Impersonating"
            .dropdown-divider
            = link_to "#{icon('fas', 'sign-out-alt mr-1')} Logout".html_safe, destroy_user_session_path, method: :delete, class: 'dropdown-item'
      - else
        %li= link_to('Login', new_user_session_path, class: 'nav-item nav-link')
<%- end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.6 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.5 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.4 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.3 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.2 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt
kowl-0.0.1 lib/kowl/templates/app/views/shared/navigation/bootstrap.html.haml.tt