blurts-server/views/scan.hbs

66 строки
3.1 KiB
Handlebars
Исходник Обычный вид История

<main class="container bg-light clear-header" {{> analytics/results_page_label }}>
2019-05-09 02:04:29 +03:00
<div class="row jst-cntr scan-results">
<div class="mw-860 headline-col">
{{#if scannedEmailId }} <!-- show the email address that was scanned -->
2019-05-13 19:35:41 +03:00
<p id="scanned-email-address" class="scanned-email-address">{{ getString "results-for" userEmail="" }} <span id="scannedEmail" data-scanned-email-id={{ scannedEmailId }} class="bold"></span></p>
{{/if}}
{{#if specificBreach}}
{{#getScanResultsHeadline }}
<h2 class="headline scan-results-headline fb-res-headline">{{{ this.headline }}}</h2>
{{#if this.subhead }}
<h3 class="scan-res-subhead">{{{ this.subhead }}}</h2>
{{/if}}
{{/getScanResultsHeadline}}
{{else}}
<h2 class="headline scan-results-headline">{{{ fluentNestedBold "scan-results-known-breaches" breachCount=foundBreaches.length }}}</h2>
{{#if newScanPage}} <!-- New trial UI for testing call to actions -->
<button class="open-oauth blue-link temp-marketing-alert-me-link" {{> analytics/fxa id="fx-monitor-alert-me-blue-link" }} data-event-category="Alert me about new breaches">
{{ getString "alert-about-new-breaches" }}
</button>
{{else}}
<button class="btn-violet-secondary open-oauth btn-small btn-transparent" {{> analytics/fxa id="fx-monitor-alert-me-btn" }} data-event-category="Alert me about new breaches">
{{ getString "alert-about-new-breaches" }}
</button>
{{/if}}
2019-03-28 19:14:45 +03:00
{{/if}}
</div>
2019-04-03 21:30:19 +03:00
</div>
2019-03-29 22:17:02 +03:00
<div class="row jst-cntr user-found-breaches flx-col">
<div class="mw-860 found-breaches scan-res-breaches">
{{#each (getFoundBreaches)}}
{{> breach-card cardType="two-up drop-shadow"}}
{{/each}}
2019-04-23 01:52:43 +03:00
</div>
{{#ifCompare foundBreaches.length ">" "0"}}
<div class="mw-860 txt-cntr source-info-wrap">
{{> hibp-attribution}}
</div>
{{/ifCompare}}
2019-03-28 19:14:45 +03:00
</div>
2019-03-29 22:17:02 +03:00
</main>
<section>
{{#if newScanPage}} <!-- New trial UI for testing call to actions -->
<div class="row txt-cntr jst-cntr flx-col temp-marketing-callout">
<h2 class="temp-marketing-hl mw-400">{{ getString "sign-up-headline-1" }}</h2>
<!--
the `data-event-category` attribute for this button is "Alert me about new breaches - Banner"
to match the "Alert me.." button on the other version of the scan results page and to make comparisons
between this button and the "Alert me.." button on the other version of the scan results page easier
-->
<button class="open-oauth temp-marketing-btn-blue" {{> analytics/fxa id="fx-monitor-alert-me-blue-btn" }} data-event-category="Alert me about new breaches - Banner">{{ getString "alert-about-new-breaches" }}</button>
{{> sign-up-banners/browser-not-required }}
</div>
{{else}}
<div class="row jst-cntr flx-col">
{{> scan-another-email addClass="stacked"}}
</div>
<div class="fxa-signup-gradient">
<div class="row fxa-signup-banner scan-res">
{{> sign-up-banners/scan-results-sign-up }}
</div>
</div>
{{/if}}
2019-05-13 19:35:41 +03:00
</section>