From 714611b9fd0099d5050003e575b6a213aaf06bba Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 17 Aug 2022 10:53:21 +0200 Subject: [PATCH] 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 --- ghost/admin/app/helpers/parse-audit-log-event.js | 2 +- ghost/admin/app/templates/settings/audit-log.hbs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ghost/admin/app/helpers/parse-audit-log-event.js b/ghost/admin/app/helpers/parse-audit-log-event.js index 3fd946a821..76ed51f6a7 100644 --- a/ghost/admin/app/helpers/parse-audit-log-event.js +++ b/ghost/admin/app/helpers/parse-audit-log-event.js @@ -7,7 +7,7 @@ export default function parseAuditLogEvent(ev) { actorName, actionIcon, action, - timestamp: ev.created_at + original: ev }; } diff --git a/ghost/admin/app/templates/settings/audit-log.hbs b/ghost/admin/app/templates/settings/audit-log.hbs index 54856ea4e3..68ac9e0ac9 100644 --- a/ghost/admin/app/templates/settings/audit-log.hbs +++ b/ghost/admin/app/templates/settings/audit-log.hbs @@ -34,13 +34,12 @@
{{svg-jar ev.actionIcon}}
- {{capitalize-first-letter event.action}} - {{ev.action}} + {{capitalize-first-letter ev.action}} {{ev.original.resource_id}}
-
{{moment-format ev.timestamp "DD MMM YYYY HH:mm:ss"}}
+
{{moment-format ev.original.created_at "DD MMM YYYY HH:mm:ss"}}
{{/let}} {{/each}}