Ghost/ghost/admin/app/components/gh-file-uploader.hbs
Gabriel Csapo beb5ae1737 [chore] adds ember-template-lint and fixes all fixable issues (#2238)
no issue

- This will help with the octane migration and you can still run the lint rules even when they are todos. (Checkout the docs at 158b119667/docs/todos.md) The good news is any new code will be checked against the recommended config.
- I fixed all the auto fixable things we could get in this PR as well
2022-02-02 16:09:43 +00:00

21 lines
802 B
Handlebars

{{#if this.file}}
{{!-- Upload in progress! --}}
{{#if this.failureMessage}}
<div class="failed">{{this.failureMessage}}</div>
{{/if}}
<div class="progress-container">
<div class="progress">
<div class="bar {{if this.failureMessage "fail"}}" style={{this.progressStyle}}></div>
</div>
</div>
{{#if this.failureMessage}}
<button class="gh-btn gh-btn-green" data-test-upload-try-again-button type="button" {{action "reset"}}><span>Try Again</span></button>
{{/if}}
{{else}}
<div class="upload-form">
<GhFileInput @multiple={{false}} @alt={{this.labelText}} @action={{action "fileSelected"}} @accept={{this.accept}}>
<div class="description">{{this.labelText}}</div>
</GhFileInput>
</div>
{{/if}}