{{define "results.html"}}

Scan Results for {{.Target}}

Files found: {{.Stats.FilesFound}} Files scanned: {{.Stats.FilesScanned}} Results: {{.ActiveCount}}{{if ne .ActiveCount .TotalCount}} / {{.TotalCount}}{{end}}
{{if .Error}} {{end}} {{$sessionID := .SessionID}} {{if eq .ActiveCount 0}}

No credentials found. The scan completed successfully with no results.

{{else}}
{{range $group := groupByFile .Results}}
{{$group.File}}
{{len $group.Results}} finding{{if ne (len $group.Results) 1}}s{{end}}
{{range $group.Results}} {{template "result_row.html" (makeRowData $sessionID .)}} {{end}}
{{end}} {{if .HasMore}}
{{end}}
{{end}}
{{end}}