tap/app/views/layouts/_header.html.erb

32 lines
1 KiB
Text
Raw Normal View History

2014-11-06 14:46:59 +01:00
<header class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
2014-11-06 21:31:21 +01:00
<%= link_to 'Taþ' , root_path , id: "logo" %>
2014-11-06 14:46:59 +01:00
<nav>
<ul class="nav navbar-nav pull-right">
<li><%= link_to "Home", root_path %></li>
<li><%= link_to "Overview", overview_path %></li>
2014-11-06 18:30:53 +01:00
<li><%= link_to "Help", help_path %></li>
<!-- account -->
<% if logged_in? %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Account <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><%= link_to "Profile", current_user %></li>
2014-11-06 20:07:18 +01:00
<li><%= link_to "Settings", edit_user_path(current_user) %></li>
2014-11-06 18:30:53 +01:00
<li class="divider"></li>
<li>
<%= link_to "Log out", logout_path, method: "delete" %>
</li>
</ul>
</li>
<% else %>
<li><%= link_to "Log in", login_path %></li>
<% end %>
2014-11-06 14:46:59 +01:00
</ul>
</nav>
</div>
</header>