mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
327cbdf7a2
closes https://github.com/TryGhost/Ghost/issues/6661 - refactor `gh-profile-image` component to use native browser functionality - remove `jquery-file-upload` bower dependency
26 lines
747 B
Handlebars
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>
|