<%= link_to "Huginn", root_path, :class => 'navbar-brand' %>
<% if user_signed_in? %>
    <%= nav_link "Agents", agents_path do %>
      <%= nav_link "New Agent", new_agent_path, glyphicon: "plus" %> <%= nav_link "Run event propagation", propagate_agents_path, method: 'post', glyphicon: "refresh" %> <%= nav_link "View Diagram", diagram_path, glyphicon: 'random' %>
    <% end %> <%= nav_link "Scenarios", scenarios_path %> <%= nav_link "Events", events_path %> <%= nav_link "Credentials", user_credentials_path %>
<% end %>
    <% if user_signed_in? %>
    <%= image_tag "spinner-arrows.gif", :class => "spinner" %>
  • <% if defined?(DelayedJobWeb) %> 0 <% else %> 0 <% end %>
  • 0 new 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 %>
    • <%= 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 %>