2014-04-25 01:32:32 +00:00
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2014-05-02 18:46:13 +00:00
|
|
|
<a class="navbar-brand" href="/"><%= image_tag asset_path("/assets/favicon.png"), size: "32x32" %> VidPush</a>
|
2014-04-25 01:32:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2014-05-14 18:01:19 +00:00
|
|
|
<% if admin_signed_in? %>
|
2014-05-14 18:11:52 +00:00
|
|
|
<li><%= link_to "Edit Users", accounts_path %></li>
|
2014-05-14 18:01:19 +00:00
|
|
|
<% else %>
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li><%= link_to "Login as Admin", new_admin_session_path %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2014-04-29 17:03:46 +00:00
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li><%= link_to "Profile", edit_user_registration_path %></li>
|
|
|
|
<li><%= link_to "Logout", destroy_user_session_path, :method => :delete %></li>
|
|
|
|
<% else %>
|
|
|
|
<li><%= link_to "Sign in", new_user_session_path %></li>
|
|
|
|
<% end %>
|
2014-04-25 01:32:32 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|