Sha256: e2354ac2ba5edf30ca16670473d64485350451e3b18a294521eb4fbb62ffc832

Contents?: true

Size: 974 Bytes

Versions: 5

Compression:

Stored size: 974 Bytes

Contents

<section id="navbar">
  <div class="page-header">
    <h1>Navbar
      <small>bootstrap navbar helper</small>
    </h1>
  </div>

  <p>Navbar helpers wraps the bootstrap navbar component.</p>

  <h3>Navbar with brand and nav and divider</h3>

  <div class="bs-docs-example">
    <%= navbar do %>
        <%= link_to 'Title', {}, href: '#', class: 'brand' %>
        <%= nav do |n|
            n.add link_to('nav1', href: '#'), {class: 'active'}
            n.add link_to('nav2', href: '#')
            n.add class: 'divider-vertical'
            n.add link_to('nav3', href: '#')
        end %>
    <% end %>
  </div>


<pre class="prettyprint linenums lang-erb">
&lt;%= navbar %&gt;
  &lt;%= link_to 'Title', {}, href: '#', class: 'brand' %&gt;
  &lt;%= nav do |n|
    n.add link_to('nav1', href: '#'), class: 'active'
    n.add link_to('nav2', href: '#')
    n.add class: 'divider-vertical'
    n.add link_to('nav3', href: '#')
  end %&gt;
&lt;% end %&gt;
</pre>
</section>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bs-helper-0.1.4 test/dummy/app/views/components/_navbar.html.erb
bs-helper-0.1.3 test/dummy/app/views/components/_navbar.html.erb
bs-helper-0.1.2 test/dummy/app/views/components/_navbar.html.erb
bs-helper-0.1.1 test/dummy/app/views/components/_navbar.html.erb
bs-helper-0.1.0 test/dummy/app/views/components/_navbar.html.erb