mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
09435ecf76
no issue Keeps component JS backing files and template files in the same directory which avoids hunting across directories when working with components. Also lets you see all components when looking at one directory, whereas previously template-only or js-only components may not have been obvious without looking at both directories. - ran [codemod](https://github.com/ember-codemods/ember-component-template-colocation-migrator/) for app-level components - manually moved in-repo-addon component templates in `lib/koenig-editor` - removed all explicit `layout` imports as JS/template associations are now made at build-time removing the need for them - updated `.embercli` to default to new flat component structure
26 lines
791 B
Handlebars
26 lines
791 B
Handlebars
<figure class="account-image">
|
|
|
|
{{#unless this.previewDataURL}}
|
|
<div class="placeholder-img" style={{this.placeholderStyle}}></div>
|
|
<div id="account-image" class="gravatar-img" style={{this.avatarStyle}}>
|
|
<span class="sr-only">User image</span>
|
|
</div>
|
|
{{/unless}}
|
|
|
|
{{#if this.previewDataURL}}
|
|
<img src={{this.previewDataURL}} class="gravatar-img">
|
|
{{/if}}
|
|
|
|
<span class="edit-account-image" onclick={{action "openFileDialog"}} role="button">
|
|
{{svg-jar "photos"}}
|
|
<span class="sr-only">Upload an image</span>
|
|
</span>
|
|
|
|
<GhFileInput
|
|
@alt={{null}}
|
|
@name="uploadimage"
|
|
@multiple={{false}}
|
|
@action={{action "imageSelected"}}
|
|
@accept={{this.imageMimeTypes}} />
|
|
</figure>
|