mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
d8ede94ac6
Closes #5882 * If a gravatar image is available, remove the default image behind it * If gravatar image is not available, keep or replace the default image
18 lines
645 B
Handlebars
18 lines
645 B
Handlebars
<figure class="account-image js-file-upload">
|
|
{{#unless hasUploadedImage}}
|
|
<div class="placeholder-img" style={{defaultImage}}></div>
|
|
<div id="account-image" class="gravatar-img" style={{imageBackground}}>
|
|
<span class="sr-only">User image</span>
|
|
</div>
|
|
{{/unless}}
|
|
|
|
<div class="js-img-preview"></div>
|
|
|
|
<span class="edit-account-image js-img-dropzone">
|
|
<i class="icon-photos">
|
|
<span class="sr-only">Upload an image</span>
|
|
</i>
|
|
</span>
|
|
{{#if fileStorage}}<input type="file" class="file-uploader js-file-input" name="uploadimage">{{/if}}
|
|
</figure>
|