Ghost/ghost/admin/lib/gh-koenig/addon/templates/components/koenig-card.hbs

24 lines
540 B
Handlebars
Raw Normal View History

{{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>