<%= link_to "Huginn", root_path, :class => 'navbar-brand' %>
<% if user_signed_in? %>
    <%= nav_link "Agents", agents_path do %>
      <%= nav_link icon_tag('glyphicon-plus') + " New Agent", new_agent_path %> <%= nav_link icon_tag('glyphicon-refresh') + " Run event propagation", propagate_agents_path, method: 'post' %> <%= nav_link icon_tag('glyphicon-random') + " View Diagram", diagram_path %>
    <% end %> <%= nav_link "Scenarios", scenarios_path %> <%= nav_link "Events", events_path %> <%= nav_link "Credentials", user_credentials_path %> <%= nav_link "Services", services_path %>
<% end %>
    <% if user_signed_in? %>
    <%= image_tag "spinner-arrows.gif", :class => "spinner" %>
  • <%= link_to current_user.admin? ? jobs_path : '#', class: 'visible-lg' do %> <%= icon_tag('glyphicon-refresh', class: 'icon-white') %> 0 <% end %>
  • <%= link_to current_user.admin? ? jobs_path : '#', class: 'visible-lg' do %> <%= icon_tag('glyphicon-question-sign', class: 'icon-yellow') %> 0 <% end %>
  • <%= link_to current_user.admin? ? jobs_path : '#', class: 'hidden-sm hidden-xs' do %> <%= icon_tag('glyphicon-exclamation-sign', class: 'icon-white') %> 0 <% end %>
  • <%= icon_tag('glyphicon-random', class: 'icon-white') %> 0 events
  • <% end %>
  • Account
    • <% if user_signed_in? %> <%= link_to 'Account', edit_user_registration_path, :tabindex => "-1" %> <% else %> <%= link_to 'Sign up', new_user_registration_path, :tabindex => "-1" %> <% end %>
    • <% if user_signed_in? && current_user.admin %>
    • <%= link_to 'Job Management', jobs_path, :tabindex => '-1' %>
    • <% end %>
    • <%= link_to 'About', 'https://github.com/cantino/huginn', :tabindex => "-1" %>
    • <% if user_signed_in? %> <%= link_to 'Logout', destroy_user_session_path, :method => :delete, :tabindex => "-1" %> <% else %> <%= link_to 'Login', new_user_session_path, :tabindex => "-1" %> <% end %>