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:
parent
fa158b3831
commit
9fda97550d
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue