mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
b85ac98368
closes #5334 - adds component for profile images (with optional gravatar) - integrates image profile component into setup form
20 lines
625 B
Handlebars
20 lines
625 B
Handlebars
<figure class="account-image js-file-upload">
|
|
{{#unless hasUploadedImage}}
|
|
<div class="placeholder-img" style={{defaultImage}}></div>
|
|
|
|
{{#if hasEmail}}
|
|
<div id="account-image" class="gravatar-img" style={{imageBackground}}>
|
|
<span class="sr-only">User image</span>
|
|
</div>
|
|
{{/if}}
|
|
{{/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>
|
|
<input type="file" class="file-uploader js-file-input" name="uploadimage">
|
|
</figure>
|