mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed double capitalisation in publish options recipients text
refs 89f089e439
- if "Free" or "Paid" had already been output we were still capitalising "Subscribers" ending up with "Free Subscribers" instead of "Free subscribers"
- adjusted the capitalisation conditionals so we don't capitalize "subscriber(s)" if we've already output the recipient type
This commit is contained in:
parent
e2ad6e9366
commit
07fde0ee48
1 changed files with 7 additions and 7 deletions
|
@ -50,15 +50,15 @@
|
|||
{{!-- @recipientType = none/free/paid/all/specific --}}
|
||||
{{#let (if (not-eq @recipientType "all") @recipientType) as |recipientType|}}
|
||||
{{if (is-empty countFetcher.count) (capitalize recipientType) recipientType}}
|
||||
{{/let}}
|
||||
|
||||
{{#if @publishOptions.onlyDefaultNewsletter}}
|
||||
{{gh-pluralize countFetcher.count (if (is-empty countFetcher.count) "Subscriber" "subscriber") without-count=true}}
|
||||
{{gh-pluralize countFetcher.count (if (and (is-empty countFetcher.count) (not recipientType)) "Subscriber" "subscriber") without-count=true}}
|
||||
{{else}}
|
||||
{{gh-pluralize countFetcher.count (if (is-empty countFetcher.count) "Subscriber" "subscriber") without-count=true}}
|
||||
{{gh-pluralize countFetcher.count (if (and (is-empty countFetcher.count) (not recipientType)) "Subscriber" "subscriber") without-count=true}}
|
||||
of <span class="gh-selected-newsletter">{{@publishOptions.newsletter.name}}</span>
|
||||
{{/if}}
|
||||
{{/let}}
|
||||
{{/let}}
|
||||
{{else}}
|
||||
Not sent as newsletter
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Reference in a new issue