{{ $totalVuln := .VulnTypeSummary.All }} {{ range .ImageInfo.AllBaseImages}} {{ end }}
OS version: {{ .ImageInfo.OS }}
{{ if gt (len .AllLayers) 0}}
play_arrow
{{ end }}
{{ if eq .Index 0}} Your image: {{ else }} Base image {{ .Index }}: {{ end }} {{ getBaseImageName . }} ({{ .Count.AnalysisCount.Regular }}/{{ $totalVuln }} vulnerabilities)
{{ range .AllLayers }} {{ $index := .Index }} {{ $originalCommand := .LayerMetadata.Command }} {{ $commandSet := formatLayerCommand $originalCommand }} {{ $command := index $commandSet 0 }} {{ $commandDetail := index $commandSet 1 }} {{ $diffID := .LayerMetadata.DiffID }} {{ $longCommand := false }} {{ if gt (len $command) 109 }} {{ $longCommand = true }} {{ end }} {{ $hasVuln := false }} {{ if gt .Count.AnalysisCount.Regular 0 }} {{ $hasVuln = true }} {{ end }}

{{ .Index }} {{ $command }}

{{ if $longCommand }} {{ $originalCommand }} {{ end }}
{{ if $hasVuln }} {{ template "severity_summary_template.gohtml".Count.SeverityCount }} {{ end }}
{{ end }}