mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
24 lines
540 B
Handlebars
24 lines
540 B
Handlebars
{{component
|
|
card.card.name
|
|
env=card.env
|
|
payload=card.payload
|
|
options=card.options
|
|
apiRoot=apiRoot
|
|
assetPath=assetPath
|
|
doSave=doSave
|
|
isEditing=isEditing
|
|
}}
|
|
<div class="card-handle">
|
|
{{#if card.card.buttons.preview}}
|
|
<button {{action "toggleState"}}>
|
|
{{#if isEditing}}
|
|
Edit
|
|
{{else}}
|
|
Preview
|
|
{{/if}}
|
|
</button>
|
|
{{/if}}
|
|
{{#if card.card.buttons.save}}
|
|
<button {{action "save"}}>Save</button>
|
|
{{/if}}
|
|
</div> |