mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
ff69766442
closes TryGhost/Ghost#9506
26 lines
744 B
Handlebars
26 lines
744 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">
|
|
{{svg-jar "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>
|