mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
ff69766442
closes TryGhost/Ghost#9506
16 lines
453 B
Handlebars
16 lines
453 B
Handlebars
{{#if hasBlock}}
|
|
{{yield (hash
|
|
isIdle=isIdle
|
|
isRunning=isRunning
|
|
isSuccess=isSuccess
|
|
isFailure=isFailure
|
|
)}}
|
|
{{else}}
|
|
<span>
|
|
{{#if isRunning}}{{svg-jar "spinner" class="gh-icon-spinner"}}{{runningText}}{{/if}}
|
|
{{#if isIdle}}{{buttonText}}{{/if}}
|
|
{{#if isSuccess}}{{svg-jar "check-circle"}} {{successText}}{{/if}}
|
|
{{#if isFailure}}{{svg-jar "retry"}} {{failureText}}{{/if}}
|
|
</span>
|
|
{{/if}}
|