-
<%= link_to root_path do %>
GRNET NOC
Archiving
<% end %>
<% if current_user %>
<%= content_tag(:li, active_class(clients_path, true)) do %>
<%= link_to 'Clients', clients_path %>
<% end %>
- - Contact
- -
- Profile
-
-
- <% if current_user %>
- - <%= link_to current_user.username, '#' %>
- <% end %>
- - <%= link_to 'logout', logout_path %>
+ - <%= link_to current_user.username, '#' %>
<% end %>
+ <% if current_user %>
+
+ -
+ <%= link_to logout_path do %>
+
+ Logout
+ <% end %>
+
+
+ <% end %>
<% if current_user.try(:admin?) %>
<%= content_tag(:li, active_class(admin_path)) do %>
<%= link_to 'Admin', admin_path %>
<% end %>
<%= content_tag(:li, active_class(admin_clients_path, true)) do %>
<%= link_to 'Clients', admin_clients_path %>
<% end %>
<%= content_tag(:li, active_class(unverified_admin_hosts_path, true)) do %>
<%= link_to 'Hosts', unverified_admin_hosts_path %>
<% end %>
<%= content_tag(:li, active_class(admin_users_path)) do %>
<%= link_to 'Users', admin_users_path %>
<% end %>
<%= content_tag(:li, active_class(admin_settings_path)) do %>
<%= link_to 'Settings', admin_settings_path %>
<% end %>
<% end %>