2022-08-22 20:14:17 +03:00
|
|
|
<table class="gh-list gh-audit-log-table">
|
2022-08-22 16:33:18 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>User</th>
|
2022-08-22 20:18:55 +03:00
|
|
|
<th>Event</th>
|
2022-08-22 20:14:17 +03:00
|
|
|
<th></th>
|
|
|
|
<th>Time</th>
|
2022-08-22 16:33:18 +03:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each @events as |event|}}
|
|
|
|
{{#let (parse-audit-log-event event) as |ev|}}
|
|
|
|
<tr>
|
|
|
|
<div class="gh-list-data gh-list-cellwidth-30">
|
|
|
|
<div class="flex items-center">
|
|
|
|
<span class="user-list-item-figure" style={{background-image-style (or ev.actor.profileImageUrl ev.actor.iconImage)}}>
|
|
|
|
<span class="hidden">Photo of {{ev.actor.name}}</span>
|
|
|
|
</span>
|
2022-08-22 20:14:17 +03:00
|
|
|
<h3 class="ma0 pa0 gh-audit-log-name">{{ev.actor.name}}</h3>
|
2022-08-22 16:33:18 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-22 20:14:17 +03:00
|
|
|
<div class="gh-list-data gh-list-cellwidth-10 gh-audit-log-action">
|
|
|
|
<div class="gh-audit-log-container">
|
|
|
|
<div class="gh-audit-log-icon">{{svg-jar ev.actionIcon}}</div>
|
|
|
|
<div class="gh-audit-log-event">
|
|
|
|
<span class="gh-audit-log-description">
|
2022-08-22 16:33:18 +03:00
|
|
|
{{capitalize-first-letter ev.action}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-22 20:14:17 +03:00
|
|
|
<div class="gh-list-data gh-audit-log-object">
|
|
|
|
<div class="gh-audit-log-container">
|
2022-08-23 15:11:24 +03:00
|
|
|
{{#if ev.contextResource}}
|
|
|
|
<span>{{capitalize-first-letter ev.contextResource.first}} - <code>{{ev.contextResource.second}}</code></span>
|
|
|
|
{{else if (or ev.resource.title ev.resource.name ev.original.context.primary_name)}}
|
|
|
|
{{#if (and (or ev.resource.title ev.resource.name) ev.linkable)}}
|
2022-08-22 20:14:17 +03:00
|
|
|
<LinkTo @route="editor.edit" @models={{array ev.resource.displayName ev.resource.id}} class="permalink">
|
|
|
|
<strong>{{or ev.resource.title ev.resource.name}}</strong>
|
|
|
|
</LinkTo>
|
|
|
|
{{else}}
|
|
|
|
<span class="midgrey">
|
2022-08-23 15:11:24 +03:00
|
|
|
<strong>{{or ev.resource.title ev.resource.name ev.original.context.primary_name}}</strong>
|
2022-08-22 20:14:17 +03:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">(unknown)</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gh-list-data midgrey">{{moment-format ev.original.created_at "DD MMM YYYY HH:mm:ss"}}</div>
|
2022-08-22 16:33:18 +03:00
|
|
|
</tr>
|
|
|
|
{{/let}}
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|