Created
September 27, 2013 10:31
-
-
Save Undistraction/6726699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="navbar navbar-inverse navbar-static-top" role="navigation"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<%= link_to "Pathways Admin", root_path, class:"navbar-brand"%> | |
<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> | |
</div> | |
<!-- AUTH NAVIGATION --> | |
<nav class="navbar-collapse collapse"> | |
<ul class="nav navbar-nav navbar-right"> | |
<% if user_signed_in? %> | |
<li> | |
<%= link_to(user_path(current_user), class:"navbar-link") do %> | |
<i class="icon-user icon-large"></i> <%= current_user.email %> | |
<% end %> | |
</li> | |
<li> | |
<%= link_to destroy_user_session_path, :method => :delete do %> | |
<i class="icon-unlock icon-large"></i> Log Out | |
<% end %> | |
</li> | |
<% else %> | |
<li> | |
<%= link_to new_user_session_path do %> | |
<i class="icon-lock icon-large"></i> Log In | |
<% end %> | |
</li> | |
<% end %> | |
</ul> | |
</nav> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment