0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed linking users resource

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

- some resources don't have titles, like users, so we should optionally
  see if they have a name
- this is starting to become unwieldy so I'll likely pull this logic out
  in an upcoming commit
This commit is contained in:
Daniel Lockyer 2022-08-18 13:26:51 +02:00
parent fa158b3831
commit 9fda97550d
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -36,9 +36,9 @@
<div class="gh-members-activity-event">
<span class="gh-members-activity-description">
{{capitalize-first-letter ev.action}}
{{#if ev.resource.title}}
{{#if (or ev.resource.title ev.resource.name)}}
<LinkTo @route="editor.edit" @models={{array ev.resource.displayName ev.resource.id}} class="permalink">
<strong>{{ev.resource.title}}</strong>
<strong>{{if ev.resource.title ev.resource.title ev.resource.name}}</strong>
</LinkTo>
{{else}}
<br/><small>({{ev.original.resource_id}})</small>