Ghost/ghost/admin/app/templates/components/gh-profile-image.hbs
Kevin Ansfield 327cbdf7a2 Remove usage of jquery-file-upload (#815)
closes https://github.com/TryGhost/Ghost/issues/6661
- refactor `gh-profile-image` component to use native browser functionality
- remove `jquery-file-upload` bower dependency
2017-08-18 10:27:42 +07:00

26 lines
747 B
Handlebars

<figure class="account-image">
{{#unless previewDataURL}}
<div class="placeholder-img" style={{placeholderStyle}}></div>
<div id="account-image" class="gravatar-img" style={{avatarStyle}}>
<span class="sr-only">User image</span>
</div>
{{/unless}}
{{#if previewDataURL}}
<img src={{previewDataURL}} class="gravatar-img">
{{/if}}
<span class="edit-account-image" onclick={{action "openFileDialog"}} role="button">
{{inline-svg "photos"}}
<span class="sr-only">Upload an image</span>
</span>
{{gh-file-input
alt=null
name="uploadimage"
multiple=false
action=(action "imageSelected")
accept=imageMimeTypes}}
</figure>