mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
Formatted post and member counts in newsletter settings and publishing flow
No ref
This commit is contained in:
parent
3ba3e34ab4
commit
fef8e59050
4 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@
|
|||
{{if (eq @recipientType "all") "All"}}
|
||||
{{/if}}
|
||||
|
||||
{{countFetcher.count}}
|
||||
{{format-number countFetcher.count}}
|
||||
|
||||
{{!-- @recipientType = none/free/paid/all/specific --}}
|
||||
{{if (not-eq @recipientType "all") @recipientType}}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
@dropdownClass="gh-publish-newsletter-dropdown"
|
||||
as |newsletter|
|
||||
>
|
||||
<span>{{newsletter.name}}</span><span class="gh-newsletter-count">{{newsletter.count.members}}</span>
|
||||
<span>{{newsletter.name}}</span><span class="gh-newsletter-count">{{format-number newsletter.count.members}}</span>
|
||||
</PowerSelect>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
Free
|
||||
{{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:free"))) as |countFetcher|}}
|
||||
{{#if (not (is-empty countFetcher.count))}}
|
||||
<span class="gh-publish-emailcount" data-test-email-count="free-members">({{countFetcher.count}})</span>
|
||||
<span class="gh-publish-emailcount" data-test-email-count="free-members">({{format-number countFetcher.count}})</span>
|
||||
{{/if}}
|
||||
{{/let}}
|
||||
</p>
|
||||
|
@ -46,7 +46,7 @@
|
|||
Paid
|
||||
{{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:-free"))) as |countFetcher|}}
|
||||
{{#if (not (is-empty countFetcher.count))}}
|
||||
<span class="gh-publish-emailcount" data-test-email-count="paid-members">({{countFetcher.count}})</span>
|
||||
<span class="gh-publish-emailcount" data-test-email-count="paid-members">({{format-number countFetcher.count}})</span>
|
||||
{{/if}}
|
||||
{{/let}}
|
||||
</p>
|
||||
|
|
|
@ -76,11 +76,11 @@
|
|||
{{#if (feature "multipleNewslettersUI")}}
|
||||
<div class="gh-newsletter-card-block stats-block {{unless this.displayingDefault "multiple"}}">
|
||||
<div>
|
||||
<h3 class="gh-newsletter-card-name">{{newsletter.count.members}}</h3>
|
||||
<h3 class="gh-newsletter-card-name">{{format-number newsletter.count.members}}</h3>
|
||||
<p class="gh-newsletter-card-description">Subscribers</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="gh-newsletter-card-name">{{newsletter.count.posts}}</h3>
|
||||
<h3 class="gh-newsletter-card-name">{{format-number newsletter.count.posts}}</h3>
|
||||
<p class="gh-newsletter-card-description">Posts sent</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue