package server // reportTemplate is the document skeleton (html/template; see report_html.go). // The style block is static text: nothing dynamic reaches CSS. const reportTemplate = ` {{.Title}}
{{.Motif}}
URUTAU{{.LConf}}
{{.Kicker}}

{{.CoverTitle}}

{{.CoverSub}}

{{range .CoverNums}}
{{.Value}}{{.Label}}
{{end}}
{{.LPeriod}}{{.Period}}
{{.LServers}}{{.Servers}}
{{.LGen}}{{.Generated}}

{{.LToc}}

    {{range .TOC}}
  1. {{.Title}}
  2. {{end}}

{{.TSum}}

{{.VerdictTitle}}{{range .Verdict}}

{{.}}

{{end}}
{{if .Trunc}}

{{.Trunc}}

{{end}}
{{range .KPIs}}
{{.Label}}{{.Value}}{{if .Delta}}{{.Delta}}{{end}}
{{end}}

{{.TRecs}}

    {{range .Recs}}
  • {{.Label}}{{.Text}}
  • {{end}}

{{.TThreats}}

{{.Timeline.Title}}

{{if .Timeline.Empty}}

{{.None}}

{{else}}{{.Timeline.SVG}}{{end}}
{{template "donut" .Fams}} {{template "bars" .Techs}}

{{.TIPs}}

{{template "table" .IPs}}

{{.TCamps}}

{{template "table" .Camps}}

{{.TEscs}}

{{template "table" .Escs}}

{{.TExpo}}

{{template "table" .Expo}}

{{.TGeo}}

{{template "bars" .Countries}}{{template "bars" .ASNs}}

{{.THealth}}

{{.HealthLead}}

{{range .HealthNotes}}
{{.}}
{{end}}
{{template "donut" .Classes}}{{template "donut" .Status}}
{{if .ShowPeers}}

{{.PeersNote}}

{{end}}

{{.TVis}}

{{.VisLead}}

{{range .VisKPIs}}
{{.Label}}{{.Value}}
{{end}}
{{template "bars" .Pages}}{{template "bars" .Refs}}{{template "donut" .Browsers}}{{template "donut" .Devices}}

{{.TDef}}

{{template "table" .Defense}}
{{if .HasEnf}}

{{.TEnf}}

{{.EnfLead}}

{{range .EnfNotes}}
{{.}}
{{end}}
{{range .EnfKPIs}}
{{.Label}}{{.Value}}
{{end}}

{{.TEnfRecent}}

{{template "table" .EnfRecent}}
{{end}} {{if .HasEgress}}

{{.TEgress}}

{{.XLead}}

{{range .XNotes}}
{{.}}
{{end}}
{{template "bars" .XChart}}{{template "bars" .XDst}}

{{.TXFind}}

{{template "table" .XFind}}

{{.TXWl}}

{{template "table" .XWl}}
{{end}}

{{.TMethod}}

{{.MethodP1}}

{{.MethodP2}}

{{.MethodP3}}

{{define "table"}}{{if .Rows}}{{$n := .Num}}{{$w := .NoWrap}}{{range $i, $h := .Head}}{{$h}}{{end}}{{range .Rows}}{{range $i, $c := .Cells}}{{$c}}{{end}}{{end}}
{{else}}

{{.None}}

{{end}}{{end}} {{define "bars"}}

{{.Title}}

{{if .Empty}}

-

{{else}}{{.SVG}}{{end}}
{{end}} {{define "donut"}}

{{.Title}}

{{if .Empty}}

-

{{else}}
{{.SVG}}
{{end}}
{{end}} `