" id="summary">

<%= @agent.name %> Summary

<% if agent_show_view(@agent).present? %>
<%= render agent_show_view(@agent) %>
<% end %>

<%= @agent.name %> Logs <%= image_tag "spinner-arrows.gif", :class => "spinner" %>

Just a moment...
" id="details">

<%= @agent.name %> Details

Type: <%= @agent.short_type.titleize %>

<% if @agent.can_be_scheduled? %>

Schedule: <%= agent_schedule(@agent) %>

Last checked: <%= @agent.last_check_at ? time_ago_in_words(@agent.last_check_at) + " ago" : "never" %>

<% end %> <% if @agent.can_create_events? %>

Keep events: <%= (Agent::EVENT_RETENTION_SCHEDULES.detect {|s| s.last == @agent.keep_events_for } || [@agent.keep_events_for]).first %>

Last event created: <%= @agent.last_event_at ? time_ago_in_words(@agent.last_event_at) + " ago" : "never" %>

<% end %> <% if @agent.can_receive_events? %>

Last received event: <%= @agent.last_receive_at ? time_ago_in_words(@agent.last_receive_at) + " ago" : "never" %>

<% end %> <% if @agent.can_create_events? %>

Events created: <%= link_to @agent.events.count, agent_events_path(@agent) %>

<% end %> <% if @agent.can_receive_events? %>

Event sources: <% if (agents = @agent.sources).length > 0 %> <%= agents.map { |agent| link_to(agent.name, agent_path(agent)) }.to_sentence.html_safe %> <% else %> None <% end %>

Propagate immediately: <%= yes_no @agent.propagate_immediately %>

<% end %> <% if @agent.can_create_events? %>

Event receivers: <% if (agents = @agent.receivers).length > 0 %> <%= agents.map { |agent| link_to(agent.name, agent_path(agent)) }.to_sentence.html_safe %> <% else %> None <% end %>

<% end %> <% if @agent.can_control_other_agents? %>

Control Targets: <% if (agents = @agent.control_targets).length > 0 %> <%= agents.map { |agent| link_to(agent.name, agent_path(agent)) }.to_sentence.html_safe %> <% else %> None <% end %>

<% end %>

Working: <%= working @agent %>

Options:

<%= Utils.pretty_jsonify @agent.options || {} %>

Memory:

<%= Utils.pretty_jsonify @agent.memory || {} %>