Created
June 6, 2013 21:03
-
-
Save abrongersma/5724911 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!-- Main navigation fixed on top --> | |
| <div class="navbar navbar-static-top"> | |
| <div class="navbar-inner"> | |
| <div class="container"> | |
| <%= link_to image_tag('56k.co-logo.png'), root_url, :class => 'brand' %> | |
| <ul class="nav"> | |
| <li class="active"> | |
| <a href="<%= root_url %>">Home</a> | |
| </li> | |
| <li><%= link_to "About", '/about' %></li> | |
| <li><%= link_to "Demo", '/demo' %></li> | |
| </ul> | |
| <% if user_signed_in? %> | |
| <ul class="nav pull-right"> | |
| <div class="btn-group pull-right"> | |
| <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> | |
| <i class="icon-user"></i> <%= current_user.id %> | |
| <span class="caret"></span> | |
| </a> | |
| <ul class="dropdown-menu"> | |
| <li><%= link_to "Profile", profile_path %> </li> | |
| <li class="divider"></li> | |
| <li><%= link_to "Log Out", destroy_user_session_path, method: :delete %></li> | |
| </ul> | |
| </div> | |
| <% else %> | |
| <ul class="nav pull-right"> | |
| <li><%= link_to "Sign In", new_user_session_path %></li> | |
| <li><%= link_to "Register", new_user_registration_path %></li> | |
| </ul> | |
| <% end %> | |
| </div> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment