<%= setup_context(:title => I18n.t("event._plural")) %> <% add_column(I18n.t("event.event_type"), proc {|record| I18n.t("enumerations.event_event_type.#{record['event_type']}", :default => record['event_type'])}, :sortable => true, :sort_by => "event_type") add_column(I18n.t("event.outcome"), proc {|record| I18n.t("enumerations.event_outcome.#{record['outcome']}", :default => record['outcome'])}, :sortable => true, :sort_by => "outcome") add_column(I18n.t("linked_agent._plural"), proc {|record| event = JSON.parse(record['json']) event['linked_agents'].map{|link| content_tag("div", "#{I18n.t("enumerations.linked_agent_event_roles.#{link['role']}", :default => link['role'])}: #{link['_resolved']['title']}") }.join.html_safe }, :sortable => false) add_column(I18n.t("linked_record._plural"), proc {|record| event = JSON.parse(record['json']) event['linked_records'].map{|link| content_tag("div", "#{I18n.t("enumerations.linked_event_archival_record_roles.#{link['role']}", :default => link['role'])}: #{link['_resolved']['title']}") }.join.html_safe }, :sortable => false) %>
<% if user_can?('update_event_record') %>
<% if user_can?('manage_repository') %> <%= link_to I18n.t("actions.edit_default_values"), {:controller => :events, :action => :defaults}, :class => "btn btn-sm btn-default" %> <% end %> <%= link_to I18n.t("event._frontend.action.create"), {:controller => :events, :action => :new}, :class => "btn btn-sm btn-default" %>

<% end %>
<%= link_to_help :topic => "search" %>

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

<%= render_aspace_partial :partial => "shared/flash_messages" %> <%= render_aspace_partial :partial => "search/listing" %>