{{#each @events as |event|}} {{#let (parse-audit-log-event event) as |ev|}}
{{#if ev.actor.name}} {{/if}}
{{svg-jar ev.actionIcon}}
{{!-- --}}
{{capitalize-first-letter ev.action}}: {{#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}} {{or ev.original.resource.title ev.original.resource.name}} {{else}} {{or ev.original.resource.title ev.original.resource.name ev.original.context.primary_name}} {{/if}} {{else}} (unknown) {{/if}} – 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}}