0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added link to Audit Log resource

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

- this allows you to click on the title and go to whatever resource was
  acted upon
- if the resource has not be found, it'll just show the resource ID
This commit is contained in:
Daniel Lockyer 2022-08-18 13:11:00 +02:00
parent 5f4c170d05
commit fa158b3831
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -35,7 +35,14 @@
<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 ev.action}} <strong>{{ev.resource.title}}</strong>
{{capitalize-first-letter ev.action}}
{{#if ev.resource.title}}
<LinkTo @route="editor.edit" @models={{array ev.resource.displayName ev.resource.id}} class="permalink">
<strong>{{ev.resource.title}}</strong>
</LinkTo>
{{else}}
<br/><small>({{ev.original.resource_id}})</small>
{{/if}}
</span>
</div>
</div>