mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
ea58dc6f85
refs https://github.com/TryGhost/Ghost/issues/8032 - `fileStorage: false` config is going away, it predates storage engines and will simplify future image optimisation work - simplifies UI, it can be brought back in the future in a more robust fashion if required
25 lines
767 B
Handlebars
25 lines
767 B
Handlebars
|
|
{{#if url}}
|
|
<img src="{{url}}" />
|
|
{{else 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="btn btn-green" {{action "reset"}}>Try Again</button>
|
|
{{/if}}
|
|
{{else}}
|
|
{{!-- file selection/drag-n-drop --}}
|
|
<div class="upload-form">
|
|
{{#gh-file-input multiple=false alt=description action=(action 'fileSelected') accept=accept}}
|
|
<div class="description">{{description}}</div>
|
|
{{/gh-file-input}}
|
|
</div>
|
|
{{/if}}
|