" id="summary">

<%= @agent.name %> Summary

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

<%= @agent.name %> Details

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

Schedule: <%= (@agent.schedule || "n/a").humanize.titleize %>

Last checked: <% if @agent.cannot_be_scheduled? %> N/A <% else %> <%= @agent.last_check_at ? time_ago_in_words(@agent.last_check_at) + " ago" : "never" %> <% end %>

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

Last received event: <% if @agent.cannot_receive_events? %> N/A <% else %> <%= @agent.last_receive_at ? time_ago_in_words(@agent.last_receive_at) + " ago" : "never" %> <% end %>

Event count: <%= link_to @agent.events.count, events_path(:agent => @agent.to_param) %>

Working: <%= working @agent %>

Options:

<%= PP.pp(@agent.options, "") %>

Memory:

<%= PP.pp(@agent.memory, "") %>