Sha256: 8c2f7c15a456a9f7d417d908511cc1ec323321f94c6deb1676cb9d0818f5fb43

Contents?: true

Size: 1.73 KB

Versions: 19

Compression:

Stored size: 1.73 KB

Contents

- container_mode = html_options[:container_mode]
- html_options[:container_mode] = nil

- case container_mode
  - when :with
    %nav.navbar.navbar-default
      .container
        .row.clearfix
          .column.col-md-12
            .navbar-header
              %button.navbar-toggle{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
    .container
      .row.clearfix
        .column.col-md-12
          %nav.navbar.navbar-default
            .navbar-header
              %button.navbar-toggle{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
      .navbar-header
        %button.navbar-toggle{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

19 entries across 19 versions & 1 rubygems

Version Path
bootstrap_leather-0.5.5 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.5.4 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.5.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.5.2 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.5.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.9 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.8 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.7 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.6 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.5 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.4 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.2 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.1 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.4.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.3.1 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.3.0 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.2.3 app/views/bootstrap_leather/_navbar.html.haml
bootstrap_leather-0.2.2 app/views/bootstrap_leather/_navbar.html.haml