mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-12-06 18:13:40 +01:00
668 lines
22 KiB
HTML
668 lines
22 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.Name}}</title>
|
|
<style>
|
|
@page { margin: 0; size: A4 portrait; }
|
|
|
|
:root {
|
|
--dark: #111827;
|
|
--dark2: #1f2937;
|
|
--dark3: #374151;
|
|
--accent: #2563eb;
|
|
--white: #f9fafb;
|
|
--muted: rgba(249,250,251,0.65);
|
|
--border: rgba(249,250,251,0.08);
|
|
--danger: #ef4444;
|
|
--warning: #f59e0b;
|
|
--safe: #10b981;
|
|
--info: #2563eb;
|
|
--training: #5b93e6;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
html, body { overflow: auto; width: 100%; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
|
|
background: var(--dark);
|
|
color: var(--white);
|
|
font-size: 13px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* COVER */
|
|
.cover {
|
|
width: 100%;
|
|
height: 297mm;
|
|
background: var(--dark);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 52px 60px;
|
|
position: relative;
|
|
page-break-after: always;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Left-edge accent bar */
|
|
.cover::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0; top: 15%; bottom: 15%;
|
|
width: 3px;
|
|
background: linear-gradient(to bottom, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
|
|
}
|
|
|
|
/* Cover top: logo + confidential on the same baseline */
|
|
.cover-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.cover-logo { width: 176px; flex-shrink: 0; }
|
|
.cover-confidential {
|
|
font-size: 9px;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
border: 1px solid rgba(249,250,251,0.14);
|
|
padding: 5px 12px;
|
|
}
|
|
|
|
/* Cover middle: eyebrow + large campaign name */
|
|
.cover-middle {
|
|
padding-left: 20px;
|
|
}
|
|
.cover-eyebrow {
|
|
font-size: 10px;
|
|
letter-spacing: 0.3em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
margin-bottom: 16px;
|
|
}
|
|
.cover-campaign-name {
|
|
font-size: 42px;
|
|
font-weight: 700;
|
|
line-height: 1.08;
|
|
color: var(--white);
|
|
word-break: break-word;
|
|
hyphens: auto;
|
|
max-width: 520px;
|
|
}
|
|
.cover-campaign-label {
|
|
font-size: 15px;
|
|
font-weight: 300;
|
|
color: var(--muted);
|
|
margin-top: 10px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Cover bottom: divider + meta */
|
|
.cover-bottom {
|
|
padding-left: 20px;
|
|
}
|
|
.cover-rule {
|
|
width: 40px; height: 2px;
|
|
background: var(--accent);
|
|
margin-bottom: 20px;
|
|
}
|
|
.cover-meta {
|
|
display: grid;
|
|
grid-template-columns: 110px 1fr;
|
|
row-gap: 5px;
|
|
font-size: 12px;
|
|
max-width: 340px;
|
|
}
|
|
.cover-meta .key { color: var(--muted); }
|
|
.cover-meta .val { color: var(--white); font-weight: 500; }
|
|
|
|
/* PAGES */
|
|
.page {
|
|
width: 100%;
|
|
padding: 44px 60px 70px 60px;
|
|
page-break-after: always;
|
|
min-height: 297mm;
|
|
position: relative;
|
|
background: var(--dark);
|
|
}
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 13px;
|
|
margin-bottom: 26px;
|
|
}
|
|
.page-header .section-label {
|
|
font-size: 9px;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
.page-header .company { font-size: 11px; color: var(--muted); }
|
|
|
|
.section-title {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin-bottom: 10px;
|
|
margin-top: 22px;
|
|
}
|
|
.section-title:first-child { margin-top: 0; }
|
|
|
|
/* Metric cards, 3 column */
|
|
.mcards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.mcard {
|
|
background: var(--dark2);
|
|
border: 1px solid var(--border);
|
|
border-top: 2px solid var(--dark3);
|
|
padding: 14px 13px 12px;
|
|
}
|
|
.mcard.c-neutral { border-top-color: var(--dark3); }
|
|
.mcard.c-info { border-top-color: var(--info); }
|
|
.mcard.c-warning { border-top-color: var(--warning); }
|
|
.mcard.c-danger { border-top-color: var(--danger); }
|
|
.mcard.c-safe { border-top-color: var(--safe); }
|
|
.mcard.c-training { border-top-color: var(--training); }
|
|
.mcard-label {
|
|
font-size: 9px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin-bottom: 6px;
|
|
}
|
|
.mcard-value {
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
margin-bottom: 3px;
|
|
color: var(--white);
|
|
}
|
|
.mcard-sub { font-size: 10px; color: var(--muted); }
|
|
|
|
/* Donut charts */
|
|
.donuts-row {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
margin-bottom: 26px;
|
|
padding: 10px 20px;
|
|
}
|
|
.donut-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.donut-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
text-align: center;
|
|
}
|
|
.donut-count { font-size: 11px; color: var(--muted); text-align: center; }
|
|
|
|
/* General table */
|
|
table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 22px; }
|
|
thead { display: table-header-group; }
|
|
thead tr { border-bottom: 1px solid var(--accent); }
|
|
th {
|
|
font-size: 9px;
|
|
letter-spacing: 0.11em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
padding: 7px 9px;
|
|
text-align: left;
|
|
font-weight: 400;
|
|
}
|
|
td {
|
|
padding: 7px 9px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: rgba(249,250,251,0.85);
|
|
word-break: break-word;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
tr { page-break-inside: avoid; }
|
|
/* a table with both phishing and training columns: smaller text, and a
|
|
count stays on one line with its percent */
|
|
table.wide { font-size: 10.5px; }
|
|
table.wide th { padding: 7px 5px; font-size: 8px; letter-spacing: 0.06em; }
|
|
table.wide td { padding: 7px 5px; }
|
|
table.wide td.num { white-space: nowrap; }
|
|
|
|
/* Badges */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 7px;
|
|
font-size: 9px;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.badge-danger { background: rgba(239,68,68,0.14); color: var(--danger); }
|
|
.badge-warning { background: rgba(245,158,11,0.14); color: var(--warning); }
|
|
.badge-safe { background: rgba(16,185,129,0.14); color: var(--safe); }
|
|
.badge-info { background: rgba(37,99,235,0.14); color: var(--info); }
|
|
.badge-muted { background: rgba(55,65,81,0.5); color: var(--muted); }
|
|
|
|
/* Page footer */
|
|
.page-footer {
|
|
position: absolute;
|
|
bottom: 26px; left: 60px; right: 60px;
|
|
padding-top: 9px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 9px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
|
|
/* PROGRAM REPORT ADDITIONS, built from the blocks above */
|
|
|
|
/* four column variant of the metric cards */
|
|
.mcards.four { grid-template-columns: repeat(4, 1fr); }
|
|
.mcards.four .mcard-value { font-size: 26px; }
|
|
.mcards.four .mcard-label { min-height: 28px; }
|
|
|
|
/* a value an anonymous report does not show */
|
|
.mcard-value.hidden { font-size: 18px; line-height: 30px; color: rgba(249,250,251,0.35); font-weight: 600; }
|
|
.mcards.four .mcard-value.hidden { line-height: 26px; }
|
|
|
|
/* colors by tone */
|
|
.t-info { color: var(--info); }
|
|
.t-warning { color: var(--warning); }
|
|
.t-danger { color: var(--danger); }
|
|
.t-safe { color: var(--safe); }
|
|
.t-neutral { color: var(--muted); }
|
|
.t-training { color: var(--training); }
|
|
.arc.t-info { stroke: var(--info); }
|
|
.arc.t-warning { stroke: var(--warning); }
|
|
.arc.t-danger { stroke: var(--danger); }
|
|
.arc.t-safe { stroke: var(--safe); }
|
|
.arc.t-training { stroke: var(--training); }
|
|
|
|
/* numbers in tables */
|
|
th.num, td.num { text-align: right; }
|
|
td.v-warning, td.v-danger, td.v-safe { font-weight: 600; }
|
|
td.v-warning { color: var(--warning); }
|
|
td.v-danger { color: var(--danger); }
|
|
td.v-safe { color: var(--safe); }
|
|
td.dim, span.dim { color: rgba(249,250,251,0.35); }
|
|
|
|
/* program details, a key and value table */
|
|
table.details td { padding: 5px 9px; }
|
|
table.details td:first-child { color: var(--muted); width: 38%; }
|
|
|
|
/* notes under a section */
|
|
.note {
|
|
font-size: 11px;
|
|
color: rgba(249,250,251,0.45);
|
|
margin-top: -12px;
|
|
margin-bottom: 22px;
|
|
}
|
|
.note.top { margin-top: 0; margin-bottom: 16px; }
|
|
.note.under { margin-top: 0; }
|
|
|
|
|
|
/* trend chart, click and report rate per month */
|
|
.trend {
|
|
background: var(--dark2);
|
|
border: 1px solid var(--border);
|
|
padding: 16px 16px 10px 44px;
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
}
|
|
.trend-plot {
|
|
position: relative;
|
|
height: 170px;
|
|
display: flex;
|
|
align-items: stretch;
|
|
border-bottom: 1px solid rgba(249,250,251,0.2);
|
|
}
|
|
.trend-grid {
|
|
position: absolute;
|
|
left: 0; right: 0;
|
|
border-top: 1px dashed rgba(249,250,251,0.08);
|
|
}
|
|
.trend-grid span {
|
|
position: absolute;
|
|
left: -38px;
|
|
top: -6px;
|
|
width: 32px;
|
|
text-align: right;
|
|
font-size: 9px;
|
|
color: var(--muted);
|
|
}
|
|
.trend-col {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
gap: 3px;
|
|
position: relative;
|
|
}
|
|
.trend-bar {
|
|
width: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
.trend-bar .fill { width: 100%; min-height: 1px; }
|
|
.trend-bar .val { font-size: 8px; color: rgba(249,250,251,0.85); margin-bottom: 2px; white-space: nowrap; }
|
|
.trend-bar.b-click .fill { background: var(--warning); }
|
|
.trend-bar.b-report .fill { background: var(--safe); }
|
|
/* a rate an anonymous report does not show: an empty dashed column */
|
|
.trend-bar .fill.hidden, .legend i.hidden {
|
|
background: transparent;
|
|
border: 1px dashed rgba(249,250,251,0.25);
|
|
}
|
|
.trend-bar .fill.hidden { height: 100%; }
|
|
.trend-labels { display: flex; padding-top: 6px; }
|
|
.trend-labels span {
|
|
flex: 1;
|
|
text-align: center;
|
|
font-size: 9px;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
/* a month the program or the period covers only in part */
|
|
.trend-col.partial .fill { opacity: 0.55; }
|
|
.trend-labels em { display: block; font-style: normal; font-size: 8px; color: rgba(249,250,251,0.45); }
|
|
.legend {
|
|
display: flex;
|
|
gap: 18px;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
margin-bottom: 22px;
|
|
}
|
|
.legend i {
|
|
display: inline-block;
|
|
width: 9px; height: 9px;
|
|
margin-right: 6px;
|
|
vertical-align: -1px;
|
|
}
|
|
|
|
@media print {
|
|
body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
|
|
.cover, .page { page-break-after: always; }
|
|
.trend, .mcards, .donuts-row { page-break-inside: avoid; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- COVER -->
|
|
<div class="cover">
|
|
|
|
<div class="cover-top">
|
|
<svg class="cover-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 205.63 17.27">
|
|
<path fill="#f9fafb" d="m13.18,2.73v8.15l-2.63,2.63H3.46v3.66H0V.1h10.54l2.63,2.63ZM3.46,10.69h6.25V2.93H3.46v7.76Z"/>
|
|
<path fill="#f9fafb" d="m15.22,17.18V.1h3.46v6.73h6.69V.1h3.46v17.08h-3.46v-7.22h-6.69v7.22h-3.46Z"/>
|
|
<path fill="#f9fafb" d="m31.21,17.27v-2.78l2.42-.12V2.9l-2.42-.12V0l4.15.2,4.15-.2v2.78l-2.42.12v11.47l2.42.12v2.78l-4.15-.2-4.15.2Z"/>
|
|
<path fill="#f9fafb" d="m42.06,17.18v-3.03h9.47v-3.95l-9.71-.8V2.63L44.36.1h10.39v3.03h-9.47v3.71l9.71.81v7l-2.54,2.54h-10.39Z"/>
|
|
<path fill="#f9fafb" d="m57.48,17.18V.1h3.46v6.73h6.69V.1h3.46v17.08h-3.46v-7.22h-6.69v7.22h-3.46Z"/>
|
|
<path fill="#f9fafb" d="m73.46,17.27v-2.78l2.42-.12V2.9l-2.42-.12V0l4.15.2,4.15-.2v2.78l-2.42.12v11.47l2.42.12v2.78l-4.15-.2-4.15.2Z"/>
|
|
<path fill="#f9fafb" d="m84.13,17.18V.1h3.64l7.15,12.08V.1h3.27v17.08h-3.63l-7.15-12.08v12.08h-3.27Z"/>
|
|
<path fill="#f9fafb" d="m100.67,14.54V2.73l2.64-2.63h9.76v3.03h-8.93v11.03h6.73v-4.34h-4.1v-2.81h7.22v10.17h-10.69l-2.64-2.63Z"/>
|
|
<path fill="#f9fafb" d="m148.15,14.54V2.73l2.64-2.63h8.73v3.15h-7.81v10.78h8.05v3.15h-8.98l-2.64-2.63Z"/>
|
|
<path fill="#f9fafb" d="m161.72,17.18V.1h3.46v14.15h5.76v-3.9h3.12v6.83h-12.35Z"/>
|
|
<path fill="#f9fafb" d="m176.01,14.54V.1h3.46v13.96h6.39V.1h3.46v14.44l-2.63,2.63h-8.05l-2.64-2.63Z"/>
|
|
<path fill="#f9fafb" d="m205.15,2.63v4.32l-1.34,1.15,1.83,1.56v4.98l-2.54,2.54h-11.22V.1h10.74l2.54,2.54Zm-9.81,4.46h6.29V2.93h-6.29v4.17Zm0,7.25h6.73v-4.71h-6.73v4.71Z"/>
|
|
<path fill="#2563eb" d="m126.63,8.2l-4.5-2.6c-.58-.34-1.31.08-1.31.75v5.19c0,.67.73,1.09,1.31.75l4.5-2.6c.58-.34.58-1.17,0-1.51Z"/>
|
|
<path fill="#2563eb" d="m140.97,7.67l-11.77-6.8c-.99-.57-2.23.14-2.23,1.28v3.81l3.18,1.84c.76.44.76,1.54,0,1.98l-3.18,1.84v4.13c0,1.14,1.24,1.86,2.23,1.28l11.77-6.8c.99-.57.99-2,0-2.57Z"/>
|
|
</svg>
|
|
<div class="cover-confidential">Confidential</div>
|
|
</div>
|
|
|
|
<div class="cover-middle">
|
|
<div class="cover-eyebrow">Program Report</div>
|
|
<div class="cover-campaign-name">{{.Name}}</div>
|
|
<div class="cover-campaign-label">Program Results</div>
|
|
</div>
|
|
|
|
<div class="cover-bottom">
|
|
<div class="cover-rule"></div>
|
|
<div class="cover-meta">
|
|
{{if .CompanyName}}
|
|
<span class="key">Company</span><span class="val">{{.CompanyName}}</span>
|
|
{{end}}
|
|
<span class="key">Date</span><span class="val">{{.Generated}}</span>
|
|
<span class="key">Period</span><span class="val">{{.Period}}</span>
|
|
{{if .Started}}
|
|
<span class="key">Started</span><span class="val">{{.Started}}</span>
|
|
{{end}}
|
|
{{if .Closed}}
|
|
<span class="key">Closed</span><span class="val">{{.Closed}}</span>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- PAGE 1: RESULTS -->
|
|
<div class="page">
|
|
<div class="page-header">
|
|
<span class="section-label">Results</span>
|
|
{{if .CompanyName}}<span class="company">{{.CompanyName}}</span>{{end}}
|
|
</div>
|
|
|
|
{{if .Anonymous}}<p class="note top">Anonymous program. Whole calendar months are counted once they have ended and 3 days have passed, and the counts are sends. A result is shown as {{.HiddenText}} when any month in the period could single out fewer than {{.MinGroup}} recipients. Repeat offenders are not shown.</p>{{end}}
|
|
|
|
<div class="section-title">Results</div>
|
|
<div class="mcards{{if gt (len .Results) 6}} four{{end}}">
|
|
{{range .Results}}
|
|
<div class="mcard c-{{.Tone}}">
|
|
<div class="mcard-label">{{.Label}}</div>
|
|
<div class="mcard-value{{if .Withheld}} hidden{{end}}">{{.Value}}</div>
|
|
<div class="mcard-sub">{{.Sub}}</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<p class="note under">{{if .Anonymous}}Each send is counted once per outcome.{{else}}Each recipient is counted once.{{end}}{{if .HasPhishing}} Repeat offenders clicked a link or submitted data on 2 or more sends within {{.RepeatOffenderMonths}} months.{{end}}</p>
|
|
|
|
{{if and .HasSends .Outcome}}
|
|
<div class="section-title">Outcome</div>
|
|
<div class="donuts-row">
|
|
{{range .Outcome}}
|
|
<div class="donut-item">
|
|
<svg viewBox="0 0 140 140" width="136" height="136">
|
|
<circle cx="70" cy="70" r="50" fill="none" stroke="rgba(249,250,251,0.06)" stroke-width="14"/>
|
|
{{if and .HasRate .Rate}}
|
|
<circle class="arc t-{{.Tone}}" cx="70" cy="70" r="50" fill="none" stroke-width="14"
|
|
stroke-linecap="round"
|
|
stroke-dasharray="{{printf "%.2f" (mul .Rate 3.1416)}} 314.16"
|
|
transform="rotate(-90 70 70)"/>
|
|
{{end}}
|
|
{{if .Withheld}}
|
|
<text x="70" y="74" text-anchor="middle" font-size="14" font-weight="600" fill="rgba(249,250,251,0.35)">{{.Value}}</text>
|
|
{{else if .HasRate}}
|
|
<text x="70" y="66" text-anchor="middle" font-size="20" font-weight="700" fill="#f9fafb">{{printf "%.0f" .Rate}}%</text>
|
|
<text x="70" y="81" text-anchor="middle" font-size="9" fill="rgba(249,250,251,0.55)">of sent</text>
|
|
{{else}}
|
|
<text x="70" y="76" text-anchor="middle" font-size="20" font-weight="700" fill="#f9fafb">-</text>
|
|
{{end}}
|
|
</svg>
|
|
<div class="donut-label t-{{.Tone}}">{{.Label}}</div>
|
|
<div class="donut-count">{{if .Withheld}}{{.Value}}{{else if $.Anonymous}}{{.Value}} sends{{else}}{{.Value}} recipients{{end}}</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{else if not .HasSends}}
|
|
<p class="note top">Nothing was sent in this period.</p>
|
|
{{end}}
|
|
{{if and .Anonymous .HasTraining .HasSends (not .Months) (not .Templates)}}
|
|
<p class="note top">Anonymous programs show training results in the totals only, not per month or per template.</p>
|
|
{{end}}
|
|
|
|
<div class="page-footer">
|
|
<span>Program Report</span>
|
|
<span>{{.Name}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{{if .Months}}
|
|
<!-- PAGE 2: TRENDS -->
|
|
<div class="page">
|
|
<div class="page-header">
|
|
<span class="section-label">Trends</span>
|
|
{{if .CompanyName}}<span class="company">{{.CompanyName}}</span>{{end}}
|
|
</div>
|
|
|
|
<div class="section-title">Trend by Month</div>
|
|
{{if gt (len .Trend) 1}}
|
|
<div class="trend">
|
|
<div class="trend-plot">
|
|
<div class="trend-grid" style="top:0"><span>{{printf "%.0f" .TrendMax}}%</span></div>
|
|
<div class="trend-grid" style="top:50%"><span>{{printf "%.0f" (mul .TrendMax 0.5)}}%</span></div>
|
|
<div class="trend-grid" style="top:100%;border-top:none"><span>0%</span></div>
|
|
{{range .Trend}}
|
|
<div class="trend-col{{if .Partial}} partial{{end}}">
|
|
<div class="trend-bar b-click">
|
|
{{if .Clicked.Withheld}}<div class="fill hidden"></div>{{else}}<div class="val">{{.Clicked.Text}}</div>
|
|
<div class="fill" style="height:{{printf "%.1f" .Clicked.Height}}%"></div>{{end}}
|
|
</div>
|
|
<div class="trend-bar b-report">
|
|
{{if .Reported.Withheld}}<div class="fill hidden"></div>{{else}}<div class="val">{{.Reported.Text}}</div>
|
|
<div class="fill" style="height:{{printf "%.1f" .Reported.Height}}%"></div>{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<div class="trend-labels">{{range .Trend}}<span>{{.Label}}{{if .Partial}}<em>partial</em>{{end}}</span>{{end}}</div>
|
|
</div>
|
|
<div class="legend">
|
|
<span><i style="background:#f59e0b"></i>Click Rate</span>
|
|
<span><i style="background:#10b981"></i>Report Rate</span>
|
|
{{if .Anonymous}}<span><i class="hidden"></i>{{.HiddenText}}</span>{{end}}
|
|
{{if gt (len .Months) (len .Trend)}}<span>The last {{len .Trend}} months of the period</span>{{end}}
|
|
</div>
|
|
{{end}}
|
|
|
|
<table{{if and .HasPhishing .HasTraining}} class="wide"{{end}}>
|
|
<thead>
|
|
<tr>
|
|
<th>Month</th>
|
|
{{if and .HasPhishing .HasTraining}}
|
|
<th class="num">Sent</th>
|
|
<th class="num">Clicked</th>
|
|
<th class="num">Submitted</th>
|
|
<th class="num">Reported</th>
|
|
<th class="num">Training sent</th>
|
|
<th class="num">Training started</th>
|
|
<th class="num">Training completed</th>
|
|
{{else if .HasTraining}}
|
|
<th class="num" style="width:100px">Sent</th>
|
|
<th class="num" style="width:110px">Training started</th>
|
|
<th class="num" style="width:110px">Training completed</th>
|
|
{{else}}
|
|
<th class="num" style="width:70px">Sent</th>
|
|
<th class="num" style="width:100px">Clicked</th>
|
|
<th class="num" style="width:100px">Submitted</th>
|
|
<th class="num" style="width:100px">Reported</th>
|
|
{{end}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Months}}{{$pcts := .Pcts}}
|
|
<tr>{{range $i, $c := .Cells}}{{if eq $i 0}}<td>{{$c}}</td>{{else}}<td class="num{{if or (eq $c $.HiddenText) (eq $c "-")}} dim{{end}}">{{$c}}{{with index $pcts $i}} <span class="dim">({{.}})</span>{{end}}</td>{{end}}{{end}}</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<p class="note">Counted per send. The percent is of the sends of each month{{if .HasTraining}}, a training completed percent is of the trainings started{{end}}.{{if gt .MonthsTotal (len .Months)}} The last {{len .Months}} of {{.MonthsTotal}} months of the period are shown.{{end}}</p>
|
|
|
|
<div class="page-footer">
|
|
<span>Program Report</span>
|
|
<span>{{.Name}}</span>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{if .Templates}}
|
|
<!-- PAGE 3: TEMPLATES -->
|
|
<div class="page">
|
|
<div class="page-header">
|
|
<span class="section-label">Templates</span>
|
|
{{if .CompanyName}}<span class="company">{{.CompanyName}}</span>{{end}}
|
|
</div>
|
|
|
|
<div class="section-title">Results by Template</div>
|
|
<table{{if and .HasPhishing .HasTraining}} class="wide"{{end}}>
|
|
<thead>
|
|
<tr>
|
|
<th>Template</th>
|
|
{{if and .HasPhishing .HasTraining}}
|
|
<th class="num">Sent</th>
|
|
<th class="num">Clicked</th>
|
|
<th class="num">Submitted</th>
|
|
<th class="num">Reported</th>
|
|
<th class="num">Training sent</th>
|
|
<th class="num">Training started</th>
|
|
<th class="num">Training completed</th>
|
|
{{else if .HasTraining}}
|
|
<th class="num" style="width:100px">Sent</th>
|
|
<th class="num" style="width:110px">Training started</th>
|
|
<th class="num" style="width:110px">Training completed</th>
|
|
{{else}}
|
|
<th class="num" style="width:60px">Sent</th>
|
|
<th class="num" style="width:100px">Clicked</th>
|
|
<th class="num" style="width:100px">Submitted</th>
|
|
<th class="num" style="width:100px">Reported</th>
|
|
{{end}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Templates}}{{$pcts := .Pcts}}
|
|
<tr>{{range $i, $c := .Cells}}{{if eq $i 0}}<td>{{$c}}</td>{{else}}<td class="num{{if or (eq $c $.HiddenText) (eq $c "-")}} dim{{end}}">{{$c}}{{with index $pcts $i}} <span class="dim">({{.}})</span>{{end}}</td>{{end}}{{end}}</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<p class="note">Counted per send. The percent is of the sends of each template{{if .HasTraining}}, a training completed percent is of the trainings started{{end}}.{{if gt .TemplatesTotal (len .Templates)}} The {{len .Templates}} most sent of {{.TemplatesTotal}} templates are shown.{{end}}</p>
|
|
|
|
<div class="page-footer">
|
|
<span>Program Report</span>
|
|
<span>{{.Name}}</span>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
|
|
<!-- PAGE 4: PROGRAM DETAILS -->
|
|
<div class="page">
|
|
<div class="page-header">
|
|
<span class="section-label">Setup</span>
|
|
{{if .CompanyName}}<span class="company">{{.CompanyName}}</span>{{end}}
|
|
</div>
|
|
|
|
<div class="section-title">Program Details</div>
|
|
<table class="details">
|
|
<tbody>
|
|
{{range .Details}}<tr><td>{{.Label}}</td><td>{{.Value}}</td></tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="page-footer">
|
|
<span>Program Report</span>
|
|
<span>{{.Name}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|