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

mozilla / blurts-server / 3301e8fe-9868-476c-990a-ab44e51f4a2d

pending completion
3301e8fe-9868-476c-990a-ab44e51f4a2d

push

circleci

GitHub
Merge pull request #3001 from mozilla/main

282 of 1768 branches covered (15.95%)

Branch coverage included in aggregate %.

451 of 451 new or added lines in 56 files covered. (100.0%)

959 of 4670 relevant lines covered (20.54%)

3.44 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
/**
8
 * @typedef {object} PartialData
9
 * @property {string} csrfToken
10
 */
11

12
/**
13
 * @param {PartialData} data
14
 * @returns string
15
 */
16
const unsubscribe = data => `
×
17
  <section class="unsubscribe">
18
    <h1>${getMessage('unsub-headline')}</h1>
19
    <p>${getMessage('unsub-blurb')}</p>
20
    <button
21
      class='primary js-unsubscribe-button'
22
      data-csrf-token='${data.csrfToken}'
23
    >
24
      ${getMessage('unsub-button')}
25
    </button>
26
  </section>
27
`
28

29
const unsubscribeMonthly = () => `
×
30
  <section class="unsubscribe">
31
    <h1>${getMessage('unsub-headline')}</h1>
32
    <p>${getMessage('changes-saved')}</p>
33
  </section>
34
`
35

36
export {
37
  unsubscribe,
38
  unsubscribeMonthly
39
}
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