• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #12745

pending completion
#12745

push

circleci

web-flow
Merge pull request #2889 from mozilla/MNTOR-1039-Unsubscribe-endpoint

Opt-out mechanism for emails

282 of 1415 branches covered (19.93%)

Branch coverage included in aggregate %.

82 of 82 new or added lines in 9 files covered. (100.0%)

959 of 3901 relevant lines covered (24.58%)

2.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/views/partials/unsubscribe.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { getMessage } from '../../utils/fluent.js'
6

7
const unsubscribe = data => `
×
8
  <section class="unsubscribe">
9
    <h1>${getMessage('unsub-headline')}</h1>
10
    <p>${getMessage('unsub-blurb')}</p>
11
    <button
12
      class='primary js-unsubscribe-button'
13
      data-csrf-token='${data.csrfToken}'
14
      data-query-params='${JSON.stringify(data.queryParams)}'
15
    >
16
      ${getMessage('unsub-button')}
17
    </button>
18
  </section>
19
`
20

21
const unsubscribeMonthly = () => `
×
22
  <section class="unsubscribe">
23
    <h1>${getMessage('unsub-headline')}</h1>
24
    <p>${getMessage('changes-saved')}</p>
25
  </section>
26
`
27

28
export {
29
  unsubscribe,
30
  unsubscribeMonthly
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc