{{ define "attestation-details" }} {{ if .Error }}

{{ .Error }}

{{ else }}

{{ len .Attestations }} attestation{{ if gt (len .Attestations) 1 }}s{{ end }} attached

{{ range .Attestations }}
{{ .PredicateType }} {{ .Digest }}
{{ if .NeedsLogin }}

Log in to view attestation content

{{ else if .FetchError }}

{{ .FetchError }}

{{ else if .RawJSON }}
View content
{{ .RawJSON }}
{{ else if .Size }}

Binary content ({{ .Size }} bytes) — cannot display inline

{{ end }}
{{ end }}
{{ end }} {{ end }}