mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
32 lines
1.2 KiB
Handlebars
32 lines
1.2 KiB
Handlebars
|
{{#if (eq @publishOptions.totalMemberCount 0)}}
|
||
|
<p class="gh-box gh-content-box">
|
||
|
<LinkTo @route="members">Add members</LinkTo>
|
||
|
to start sending newsletters!
|
||
|
</p>
|
||
|
{{else}}
|
||
|
<div class="form-group">
|
||
|
{{#if (gt @publishOptions.newsletters.length 1)}}
|
||
|
<div class="mb3">
|
||
|
Newsletter:
|
||
|
<PowerSelect
|
||
|
@selected={{@publishOptions.newsletter}}
|
||
|
@options={{@publishOptions.newsletters}}
|
||
|
@onChange={{@publishOptions.setNewsletter}}
|
||
|
@triggerComponent="gh-power-select/trigger"
|
||
|
@triggerClass="gh-publishmenu-newsletter-trigger"
|
||
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
||
|
as |newsletter|
|
||
|
>
|
||
|
{{newsletter.name}}
|
||
|
</PowerSelect>
|
||
|
</div>
|
||
|
{{/if}}
|
||
|
|
||
|
<GhMembersRecipientSelect
|
||
|
@filter={{@publishOptions.recipientFilter}}
|
||
|
@onChange={{@publishOptions.setRecipientFilter}}
|
||
|
@renderInPlace={{false}}
|
||
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
||
|
/>
|
||
|
</div>
|
||
|
{{/if}}
|