Added resource ID to action row

refs https://github.com/TryGhost/Toolbox/issues/356

- this will soon be populated with the actual resource name, if present
This commit is contained in:
Daniel Lockyer 2022-08-17 10:53:21 +02:00
parent 7aecae11cc
commit 714611b9fd
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@ export default function parseAuditLogEvent(ev) {
actorName,
actionIcon,
action,
timestamp: ev.created_at
original: ev
};
}

View File

@ -34,13 +34,12 @@
<div class="gh-members-activity-icon">{{svg-jar ev.actionIcon}}</div>
<div class="gh-members-activity-event">
<span class="gh-members-activity-description">
{{capitalize-first-letter event.action}}
{{ev.action}}
{{capitalize-first-letter ev.action}} <strong>{{ev.original.resource_id}}</strong>
</span>
</div>
</div>
</div>
<div class="gh-list-data">{{moment-format ev.timestamp "DD MMM YYYY HH:mm:ss"}}</div>
<div class="gh-list-data">{{moment-format ev.original.created_at "DD MMM YYYY HH:mm:ss"}}</div>
</tr>
{{/let}}
{{/each}}