Sha256: 265c481d8b6d30f450d0900523f22c2c49955738724bb784536b6bc408f2cc7c

Contents?: true

Size: 1.56 KB

Versions: 24

Compression:

Stored size: 1.56 KB

Contents

- case container_mode
  - when :with, :inside
    %nav.navbar.navbar-default{ html_options }
      .container
        .navbar-header
          %button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
            %span.sr-only
              Toggle navigation
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          = link_to logo_and_title, BootstrapLeather.configuration.application_path, :class => 'navbar-brand'
        .collapse.navbar-collapse#navbar-to-collapse
          = block
  - when :in, :outside
    .container
      %nav.navbar.navbar-default{ html_options }
        .navbar-header
          %button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
            %span.sr-only
              Toggle navigation
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          = link_to logo_and_title, BootstrapLeather.configuration.application_path, :class => 'navbar-brand'
        .collapse.navbar-collapse#navbar-to-collapse
          = block
  - else
    %nav.navbar.navbar-default{ html_options }
      .navbar-header
        %button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
          %span.sr-only
            Toggle navigation
          %span.icon-bar
          %span.icon-bar
          %span.icon-bar
        = link_to logo_and_title, BootstrapLeather.configuration.application_path, :class => 'navbar-brand'
      .collapse.navbar-collapse#navbar-to-collapse
        = block

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bootstrap_leather-0.9.4 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.9.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.9.2 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.9.1 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.9.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.8 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.7 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.6 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.5 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.4 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.2 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.1 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.8.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.7.4 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.7.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.7.1 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.7.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.6.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.6.2 app/views/bootstrap_leather/_navbar.html.haml