<% unless linked_events.blank? %>

<%= I18n.t("event._plural") %>

<% linked_events.each do |event| %> <% record = event['_resolved'] %> <% end %>
<%= I18n.t("event.event_type") %> <%= I18n.t("event.outcome") %> <%= I18n.t("linked_agent._plural") %> <%= I18n.t("linked_record._plural") %>
<%= I18n.t("enumerations.event_event_type.#{record['event_type']}", :default => record['event_type']) %> <%= I18n.t("enumerations.event_outcome.#{record['outcome']}", :default => record['outcome']) %> <% record['linked_agents'].each do |link| %>
<%= I18n.t("enumerations.linked_agent_event_roles.#{link['role']}", :default => link['role']) %>: <%= link['_resolved']['title'] %>
<% end %>
<% record['linked_records'].each do |link| %>
<%= I18n.t("enumerations.linked_event_archival_record_roles.#{link['role']}", :default => link['role']) %>: <%= link['_resolved']['display_string'] || link['_resolved']['title'] %>
<% end %>
<%= display_audit_info(record, :format => 'compact') %>
<%= link_to I18n.t("actions.view"), {:controller => :resolver, :action => :resolve_readonly, :uri => event['ref']}, :class => "btn btn-xs btn-default" %> <% if !event['_resolved']['suppressed'] %> <%= link_to I18n.t("actions.edit"), {:controller => :resolver, :action => :resolve_edit, :uri => event['ref']}, :class => "btn btn-xs btn-primary" %> <% end %>
<% end %>