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:
parent
30d211fcab
commit
71e541f2c4
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue