|
<div class="container nav-collapse">
<ul class="nav">
<li><%= link_to "Blog", blog_path %></li>
<li><%= link_to "Link2", "#" %></li>
<li><%= link_to "Link3", "#" %></li>
</ul>
<ul class="nav pull-right">
<% if user_signed_in? %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<%= current_user.full_name %> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><%= link_to 'Account', edit_user_registration_path %></li>
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li>
</ul>
</li>
<% else %>
<li><%= link_to "Login", new_user_session_path %></li>
<li><%= link_to "Sign Up", new_user_registration_path %></li>
<% end %>
</ul>
</div><!--/.nav-collapse -->
|