mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
fd91b593a5
closes https://github.com/TryGhost/Ghost/issues/12110 - adds `{{gh-pluralize}}` helper that wraps the `{{pluralize}}` helper from `ember-inflector` but formats the number using our `{{format-number}}` helper - updates all uses of `{{pluralize}}` to `{{gh-pluralize}}`
20 lines
780 B
Handlebars
20 lines
780 B
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}}
|
|
{{else if @post.isScheduled}}
|
|
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
|
Will be published {{this.scheduledText}}.
|
|
</time>
|
|
{{else if @post.isNew}}
|
|
New
|
|
{{else}}
|
|
Draft
|
|
{{/if}}
|
|
</div> |