2022-04-14 17:40:04 +03:00
|
|
|
<h4 class="gh-main-section-header small bn">Newsletters</h4>
|
2023-05-04 15:47:04 +03:00
|
|
|
<div class="gh-main-section-content grey {{unless this.suppressionData.suppressed 'gh-member-newsletter-section'}}">
|
2022-11-24 09:02:57 +03:00
|
|
|
{{#unless this.suppressionData.suppressed}}
|
|
|
|
<div class="gh-member-newsletters">
|
|
|
|
{{#each this.newsletters as |newsletter|}}
|
2022-12-12 09:13:08 +03:00
|
|
|
<div class="gh-member-newsletter-row" data-test-member-settings-switch>
|
2022-11-24 09:02:57 +03:00
|
|
|
<div>
|
|
|
|
<h4 class="gh-member-newsletter-title">{{newsletter.name}}</h4>
|
|
|
|
</div>
|
2023-05-04 15:47:04 +03:00
|
|
|
<div class="for-switch {{if this.suppressionData.suppressed 'disabled'}}">
|
2022-11-24 09:02:57 +03:00
|
|
|
<label class="switch" for={{newsletter.forId}}>
|
|
|
|
<Input
|
|
|
|
@checked={{newsletter.subscribed}}
|
|
|
|
@type="checkbox"
|
|
|
|
id={{newsletter.forId}}
|
|
|
|
name="subscribed"
|
|
|
|
data-test-checkbox="member-subscribed"
|
|
|
|
{{on "click" (fn this.updateNewsletterPreference newsletter)}}
|
|
|
|
/>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2022-04-19 18:04:03 +03:00
|
|
|
</div>
|
2022-11-24 09:02:57 +03:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2022-11-18 14:55:21 +03:00
|
|
|
|
2023-05-04 15:47:04 +03:00
|
|
|
{{#if this.suppressionData.suppressed}}
|
2022-11-24 09:02:57 +03:00
|
|
|
<div class="gh-members-no-data gh-member-newsletter-no-data">
|
2022-11-18 14:55:21 +03:00
|
|
|
{{#if (eq this.suppressionData.reason 'fail')}}
|
2022-11-24 09:02:57 +03:00
|
|
|
{{svg-jar "suppression-notice-bounced" class="gh-member-newsletter-icon"}}
|
2022-11-18 14:55:21 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq this.suppressionData.reason 'spam')}}
|
2022-11-24 09:02:57 +03:00
|
|
|
{{svg-jar "suppression-notice-flagged" class="gh-member-newsletter-icon"}}
|
2022-11-18 14:55:21 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-11-24 09:02:57 +03:00
|
|
|
<h4>Email disabled</h4>
|
|
|
|
|
|
|
|
<p>
|
2022-11-18 14:55:21 +03:00
|
|
|
{{#if (eq this.suppressionData.reason 'fail')}}
|
2022-11-24 09:02:57 +03:00
|
|
|
Bounced on {{this.suppressionData.date}}
|
2022-11-18 14:55:21 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq this.suppressionData.reason 'spam')}}
|
2022-11-24 09:02:57 +03:00
|
|
|
Flagged as spam on {{this.suppressionData.date}}
|
2022-11-18 14:55:21 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-12-13 11:57:51 +03:00
|
|
|
<a class="midgrey" href="https://ghost.org/help/disabled-emails" target="_blank" rel="noopener noreferrer">Learn more</a>
|
2022-11-24 09:02:57 +03:00
|
|
|
</p>
|
2022-11-18 14:55:21 +03:00
|
|
|
</div>
|
2023-05-04 15:47:04 +03:00
|
|
|
{{else}}
|
2022-11-18 14:55:21 +03:00
|
|
|
<div class="gh-member-newsletter-footer midgrey">
|
2022-11-24 09:02:57 +03:00
|
|
|
If disabled, member will <em>not</em> receive newsletter emails
|
2022-11-18 14:55:21 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-04-14 17:40:04 +03:00
|
|
|
</div>
|