" 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 || "n/a").humanize.titleize %>

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, events_path(:agent => @agent.to_param) %>

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

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

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

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

<% end %>

Working: <%= working @agent %>

Options:

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

Memory:

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