mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 03:22:21 +03:00
dd7985a2fd
refs 1cfa0ae58e
- `- Saved` indicator was not correctly behind labs flag
33 lines
1.3 KiB
Handlebars
33 lines
1.3 KiB
Handlebars
<div data-test-editor-post-status ...attributes>
|
|
{{#if this.isSaving}}
|
|
Saving...
|
|
{{else if (or @post.isPublished @post.pastScheduledTime)}}
|
|
Published
|
|
{{#if (or (eq @post.email.status "submitting") (eq @post.email.status "submitting"))}}
|
|
and sending to {{gh-pluralize @post.email.emailCount "member"}}
|
|
{{else if (eq @post.email.status "submitted")}}
|
|
and sent to {{gh-pluralize @post.email.emailCount "member"}}
|
|
{{/if}}
|
|
{{#if (feature "savedIndicator")}}
|
|
{{if (not @hasDirtyAttributes) "- Saved"}}
|
|
{{/if}}
|
|
{{else if @post.isScheduled}}
|
|
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
|
Will be published
|
|
{{#if @post.emailRecipientFilter}}
|
|
and sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
|
|
{{/if}}
|
|
{{this.scheduledTime}}
|
|
</time>
|
|
{{#if (feature "savedIndicator")}}
|
|
{{if (not @hasDirtyAttributes) "- Saved"}}
|
|
{{/if}}
|
|
{{else if @post.isNew}}
|
|
New
|
|
{{else}}
|
|
Draft
|
|
{{#if (feature "savedIndicator")}}
|
|
{{if (not @hasDirtyAttributes) "- Saved"}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div> |