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

mozilla / blurts-server / #12688

pending completion
#12688

push

circleci

web-flow
Merge pull request #2888 from mozilla/MNTOR-1254/update-layouts

Mntor 1254/update layouts

282 of 1421 branches covered (19.85%)

Branch coverage included in aggregate %.

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

959 of 3929 relevant lines covered (24.41%)

2.03 hits per line

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

0.0
/src/views/guestLayout.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 AppConstants from '../app-constants.js'
6
import { getMessage, getLocale } from '../utils/fluent.js'
7

8
const guestLayout = data => `
×
9
<!doctype html>
10
<html lang=${getLocale()}>
11
  <head>
12
    <title>${getMessage('brand-fx-monitor')}</title>
13
    <style>html {display: none;}</style>
14

15
    <meta charset='utf-8'>
16
    <meta name='viewport' content='width=320, initial-scale=1'>
17
    <meta name='description' content='${getMessage('meta-desc')}'>
18
    <meta name='twitter:card' content='summary_large_image'>
19
    <meta property='og:title' content='${getMessage('brand-fx-monitor')}'>
20
    <meta property='og:type' content='website'>
21
    <meta property='og:url' content='${AppConstants.SERVER_URL}'>
22
    <meta property='og:image' content='${AppConstants.SERVER_URL}/images/og-image.webp'>
23

24
    <link rel='preload' href='/fonts/Metropolis-Bold.woff2' as='font' type='font/woff2' crossorigin>
25
    <link rel='preload' href='/fonts/Inter-Regular-latin.woff2' as='font' type='font/woff2' crossorigin>
26
    <link rel='stylesheet' href='/css/index.css' type='text/css'>
27
    <link rel='stylesheet' href='/css/partials/${data.partial.name}.css' type='text/css'>
28
    <link rel='icon' href='/images/favicon-16.webp' sizes='16x16'>
29
    <link rel='icon' href='/images/favicon-32.webp' sizes='32x32'>
30
    <link rel='icon' href='/images/favicon-48.webp' sizes='48x48'>
31
    <link rel='icon' href='/images/favicon-96.webp' sizes='96x96'>
32
    <link rel='icon' href='/images/favicon-144.webp' sizes='144x144'>
33
    <link rel='icon' href='/images/favicon-256.webp' sizes='256x256'>
34
    <link rel='apple-touch-icon' href='/images/apple-touch-icon.webp' sizes='180x180'>
35

36
    <script src='/js/index.js' type='module'></script>
37

38
    <!-- Google Tag Manager -->
39
    <script nonce='${data.nonce}'>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
40
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
41
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
42
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]');
43
    n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f);
44
    })(window,document,'script','dataLayer','${AppConstants.GA4_MEASUREMENT_ID}');</script>
45
    <!-- End Google Tag Manager -->
46
  </head>
47
  <body>
48
    <header>
49
      <a href='/'>
50
        <img class='monitor-logo' srcset='/images/monitor-logo-transparent.webp 213w, /images/monitor-logo-transparent@2x.webp 425w' width='213' height='33' alt='${getMessage('brand-fx-monitor')}'>
51
      </a>
52
      <menu>
53
        <li><a href='/user/breaches' class='button secondary'>${getMessage('sign-in')}</a></li>
54
      </menu>
55
    </header>
56
    <main data-partial='${data.partial.name}'>
57
      ${data.partial(data)}
58
    </main>
59
    <footer>
60
      <a href='https://www.mozilla.org' target='_blank'>
61
        <img src='/images/moz-logo-1color-white-rgb-01.svg' width='100' height='29' loading='lazy' alt='${getMessage('mozilla')}'>
62
      </a>
63
      <menu>
64
        <li><a href='https://support.mozilla.org/kb/firefox-monitor-faq' target='_blank'>FAQ</a></li>
65
        <li><a href='https://www.mozilla.org/privacy/firefox-monitor' target='_blank'>${getMessage('terms-and-privacy')}</a></li>
66
        <li><a href='https://github.com/mozilla/blurts-server' target='_blank'>${getMessage('github')}</a></li>
67
      </menu>
68
    </footer>
69
  </body>
70
</html>
71
`
72

73
export { guestLayout }
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