mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
21 lines
734 B
Handlebars
21 lines
734 B
Handlebars
{{#if file}}
|
|
{{!-- Upload in progress! --}}
|
|
{{#if failureMessage}}
|
|
<div class="failed">{{failureMessage}}</div>
|
|
{{/if}}
|
|
<div class="progress-container">
|
|
<div class="progress">
|
|
<div class="bar {{if failureMessage "fail"}}" style={{progressStyle}}></div>
|
|
</div>
|
|
</div>
|
|
{{#if failureMessage}}
|
|
<button class="gh-btn gh-btn-green" {{action "reset"}} data-test-upload-try-again-button><span>Try Again</span></button>
|
|
{{/if}}
|
|
{{else}}
|
|
<div class="upload-form">
|
|
{{#gh-file-input multiple=false alt=labelText action=(action 'fileSelected') accept=accept}}
|
|
<div class="description">{{labelText}}</div>
|
|
{{/gh-file-input}}
|
|
</div>
|
|
{{/if}}
|