0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/templates/components/gh-profile-image.hbs
Austin Burdine b85ac98368 added profile image component
closes #5334
- adds component for profile images (with optional gravatar)
- integrates image profile component into setup form
2015-07-05 17:37:22 -04:00

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>