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

Cleaned up code duplication in Audit Log table

refs b9a42bcb1c (r81841869)

- this makes it clearer to read and cleans up my messy hacks
This commit is contained in:
Daniel Lockyer 2022-08-22 16:12:46 +02:00
parent 30d211fcab
commit 71e541f2c4
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -27,10 +27,10 @@
{{#if (or ev.resource.title ev.resource.name)}}
{{#if ev.linkable}}
<LinkTo @route="editor.edit" @models={{array ev.resource.displayName ev.resource.id}} class="permalink">
<strong>{{if ev.resource.title ev.resource.title ev.resource.name}}</strong>
<strong>{{or ev.resource.title ev.resource.name}}</strong>
</LinkTo>
{{else}}
<strong>{{if ev.resource.title ev.resource.title ev.resource.name}}</strong>
<strong>{{or ev.resource.title ev.resource.name}}</strong>
{{/if}}
{{else}}
<small>(unknown)</small>