Ghost/ghost/admin/app/templates/components/gh-image-uploader-with-preview.hbs
Kenneth Ashley 30cebae22c Safari doesn't show dragged-over state for file uploads (#288)
closes TryGhost/Ghost#7310
- Removes double dashes from modifier classes as safari won’t allow this.
2016-09-24 11:10:08 +02:00

19 lines
546 B
Handlebars

{{#if image}}
<div class="gh-image-uploader -with-image">
<div><img src={{image}}></div>
<a class="image-cancel icon-trash" title="Delete" {{action remove}}>
<span class="hidden">Delete</span>
</a>
</div>
{{else}}
{{gh-image-uploader
text=text
altText=altText
update=(action 'update')
onInput=(action 'onInput')
uploadStarted=(action 'uploadStarted')
uploadFinished=(action 'uploadFinished')
formChanged=(action 'formChanged')
}}
{{/if}}