2014-12-09 14:39:27 +01:00
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
2014-11-25 13:09:55 +01:00
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
|
<div class="navbar-header">
|
2014-12-09 14:39:27 +01:00
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2014-11-25 16:42:07 +01:00
|
|
|
<%= link_to "Tab", root_path, class: "navbar-brand" %>
|
2014-11-25 13:09:55 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Products <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
2014-11-25 16:25:00 +01:00
|
|
|
<li><%= link_to "New product" , new_product_path %></li>
|
|
|
|
<li><%= link_to "Index", products_path %></li>
|
2014-11-25 13:09:55 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Users <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
2014-12-09 17:17:11 +01:00
|
|
|
<li><%= link_to "New User", new_user_registration_path %></li>
|
2014-11-26 11:58:51 +01:00
|
|
|
<li><%= link_to "index" , users_path %></li>
|
2014-11-25 13:09:55 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2014-11-26 11:58:51 +01:00
|
|
|
<ul class="nav navbar-nav navbar-center">
|
|
|
|
<li class="navbar-text">
|
|
|
|
ADMIN NAVBAR
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
2014-11-25 13:09:55 +01:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
<li><a href="#">Profile</a></li>
|
|
|
|
<li><a href="#">Update</a></li>
|
2014-12-09 17:17:11 +01:00
|
|
|
<li><%= link_to "Sign out", destroy_user_session_path, method: :delete unless current_user.nil? %></li>
|
2014-11-25 13:09:55 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|