{{ define "artifact-entry-markup" }}
{{ if .Entry.IsTagged }}{{ .Entry.Label }}{{ else }}{{ truncateDigest (trimPrefix "sha256:" .Entry.Label) 16 }}{{ end }} {{ if eq .Entry.ArtifactType "helm-chart" }} {{ icon "helm" "size-3" }} Helm {{ else if .Entry.IsMultiArch }} Multi-arch {{ end }} {{ if .Entry.HasAttestations }} {{ end }} {{ if and .ViewerDefaultHold .Entry.HoldEndpoint (ne .Entry.HoldEndpoint .ViewerDefaultHold) }} {{ icon "hard-drive" "size-3" }} {{ displayHoldDID .Entry.HoldEndpoint }} {{ end }}
{{ icon "history" "size-4" }}{{ timeAgoShort .Entry.CreatedAt }} {{ if .IsOwner }} {{ if .Entry.IsTagged }} {{ else }} {{ end }} {{ end }}
{{ if eq .Entry.ArtifactType "helm-chart" }} {{ if .Entry.IsTagged }} {{ template "docker-command" (print "helm pull oci://" .RegistryURL "/" .OwnerHandle "/" .RepoName " --version " .Entry.Label) }} {{ else }} {{ template "docker-command" (print "helm pull oci://" .RegistryURL "/" .OwnerHandle "/" .RepoName "@" .Entry.Digest) }} {{ end }} {{ else }} {{ if .Entry.IsTagged }} {{ template "docker-command" (print (pullPrefix .OciClient) .RegistryURL "/" .OwnerHandle "/" .RepoName ":" .Entry.Label) }} {{ else }} {{ template "docker-command" (print (pullPrefix .OciClient) .RegistryURL "/" .OwnerHandle "/" .RepoName "@" .Entry.Digest) }} {{ end }} {{ end }}
{{ range .Entry.Platforms }} {{ else }} {{ end }}
Digest Vulnerabilities OS/Arch Size
{{ if .HoldEndpoint }} {{ end }} {{ if .OS }}{{ .OS }}/{{ .Architecture }}{{ if .Variant }}/{{ .Variant }}{{ end }}{{ else }}-{{ end }} {{ if .CompressedSize }}{{ humanizeBytes .CompressedSize }}{{ else }}-{{ end }}
No platform details available for this manifest.
{{ end }} {{ define "load-more-button" }} {{ if .HasMore }}
{{ end }} {{ end }} {{ define "scan-batch-triggers" }} {{ range .ScanBatchParams }}
{{ end }} {{ end }} {{ define "repo-tags" }}
{{ if .Entries }}
{{ if $.IsOwner }}
{{ end }}
{{ range .Entries }} {{ template "artifact-entry-markup" (dict "Entry" . "OwnerDID" $.Owner.DID "OwnerHandle" $.Owner.Handle "RepoName" $.Repository.Name "RegistryURL" $.RegistryURL "OciClient" $.OciClient "IsOwner" $.IsOwner "ViewerDefaultHold" $.ViewerDefaultHold) }} {{ end }}
{{ template "load-more-button" . }}
{{ template "scan-batch-triggers" . }} {{ else }}

No artifacts available

{{ end }}
{{ end }} {{ define "repo-tags-page" }} {{ range .Entries }} {{ template "artifact-entry-markup" (dict "Entry" . "OwnerDID" $.Owner.DID "OwnerHandle" $.Owner.Handle "RepoName" $.Repository.Name "RegistryURL" $.RegistryURL "OciClient" $.OciClient "IsOwner" $.IsOwner "ViewerDefaultHold" $.ViewerDefaultHold) }} {{ end }} {{ template "load-more-button" . }} {{ template "scan-batch-triggers" . }} {{ end }}