mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
c52aa8b23b
closes #5550 - passes config.fileStorage into gh-profile-image component - does not render input tag if fileStorage is set to false
21 lines
687 B
Handlebars
21 lines
687 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>
|
|
{{#if fileStorage}}<input type="file" class="file-uploader js-file-input" name="uploadimage">{{/if}}
|
|
</figure>
|