From 7e3e4bd36b158a8262bdb88d994f7ad34dbb6d61 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Fri, 16 Sep 2022 19:36:39 +0200 Subject: [PATCH] Fixed number formatting in Publish menu no refs. - number formatting (ie. thousands indicators) were missing in a couple of places in the Publish menu --- .../app/components/editor/modals/publish-flow/complete.hbs | 4 ++-- .../app/components/editor/modals/publish-flow/options.hbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs index 2c4d146fca..3a3a82ef69 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs @@ -27,7 +27,7 @@ {{#if post.emailOnly}} Your email has been sent. {{else if (and post.isPost @postCount)}} - That’s {{gh-pluralize @postCount "post"}} published, keep going! + That’s {{format-number @postCount}} {{gh-pluralize @postCount "post" without-count=true}} published, keep going! {{else}} Your {{post.displayName}} has been published. {{/if}} @@ -45,7 +45,7 @@ {{if (eq @recipientType "all") "all"}} - {{countFetcher.count}} + {{format-number countFetcher.count}} {{!-- @recipientType = free/paid/all/specific --}} {{if (not-eq @recipientType "all") @recipientType}} diff --git a/ghost/admin/app/components/editor/modals/publish-flow/options.hbs b/ghost/admin/app/components/editor/modals/publish-flow/options.hbs index f2ac69907d..59ad2f737c 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/options.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/options.hbs @@ -98,7 +98,7 @@ {{svg-jar "member"}}
Already sent to - {{@publishOptions.post.email.emailCount}} + {{format-number @publishOptions.post.email.emailCount}} {{if (not-eq @recipientType "all") @recipientType}} {{!-- free/paid/specific --}} {{gh-pluralize @publishOptions.post.email.emailCount "subscriber" without-count=true}} {{#unless @publishOptions.onlyDefaultNewsletter}}