Skip to content

Instantly share code, notes, and snippets.

@tygerbytes
Created December 11, 2018 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tygerbytes/bce9a784630eab859b0d1c423c56ccba to your computer and use it in GitHub Desktop.
Save tygerbytes/bce9a784630eab859b0d1c423c56ccba to your computer and use it in GitHub Desktop.
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">&#x1F3C3; Runby Pace</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li role="presentation" <%= class_list_if(@active_nav == 'index', 'active') %>">
<a href="/">Home</a>
</li>
<li role="presentation" <%= class_list_if(@active_nav == 'about', 'active') %>>
<%= link_to('About','/about') %>
</li>
</ul>
</div>
</div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment