0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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, actorName,
actionIcon, actionIcon,
action, 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-icon">{{svg-jar ev.actionIcon}}</div>
<div class="gh-members-activity-event"> <div class="gh-members-activity-event">
<span class="gh-members-activity-description"> <span class="gh-members-activity-description">
{{capitalize-first-letter event.action}} {{capitalize-first-letter ev.action}} <strong>{{ev.original.resource_id}}</strong>
{{ev.action}}
</span> </span>
</div> </div>
</div> </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> </tr>
{{/let}} {{/let}}
{{/each}} {{/each}}