%= 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) %>