{{#each @events as |event|}} {{#let (parse-history-event event) as |ev|}}
{{#if ev.actor.name}} {{/if}}
{{svg-jar ev.actionIcon}}
{{!-- --}}
{{capitalize-first-letter ev.action}}{{#unless ev.isBulkAction}}:{{/unless}} {{#unless ev.isBulkAction}} {{#if ev.contextResource}} {{capitalize-first-letter ev.contextResource.first}} {{#if (not-eq ev.contextResource.first ev.contextResource.second)}} ({{ev.contextResource.second}}) {{/if}} {{else if (or ev.original.resource.title ev.original.resource.name ev.original.context.primary_name)}} {{#if ev.linkTarget}} {{#if ev.linkTarget.models}} {{or ev.original.resource.title ev.original.resource.name}} {{else}} {{or ev.original.resource.title ev.original.resource.name}} {{/if}} {{else}} {{or ev.original.resource.title ev.original.resource.name ev.original.context.primary_name}} {{/if}} {{else}} (unknown) {{/if}} {{/unless}} – by {{#if ev.actorLinkTarget}} {{ev.actor.name}} {{else}} (deleted user) {{/if}}
{{moment-format ev.original.created_at "DD MMM YYYY | HH:mm:ss"}}
{{/let}} {{/each}}