Files

19 lines
926 B
HTML

{{ define "sbom-section" }}
<div class="space-y-4 min-w-0 pt-6" role="region" aria-live="polite">
{{ if eq .SbomReason "ok" }}
{{ template "sbom-details" .SbomData }}
{{ else if eq .SbomReason "hold-unreachable" }}
<div class="alert alert-warning" role="status">
{{ icon "wifi-off" "size-4 shrink-0" }}
<span>We couldn't reach the hold to load the SBOM.</span>
</div>
{{ else if eq .SbomReason "not-applicable" }}
<p class="text-base-content/70">SBOMs aren't generated for this artifact type. ATCR only produces SBOMs for container images.</p>
{{ else if eq .SbomReason "fetch-failed" }}
<p class="text-base-content/70">SBOM data couldn't be loaded. Try refreshing in a minute.</p>
{{ else }}
<p class="text-base-content/70">No SBOM available yet. The scanner generates an SBOM alongside each scan.</p>
{{ end }}
</div>
{{ end }}