{{ define "artifact-entry-markup" }}
{{ .Entry.Label }} {{ if eq .Entry.ArtifactType "helm-chart" }} {{ icon "helm" "size-3" }} Helm {{ else if .Entry.IsMultiArch }} Multi-arch {{ end }} {{ if .Entry.HasAttestations }} {{ 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 "docker pull " .RegistryURL "/" .OwnerHandle "/" .RepoName ":" .Entry.Label) }} {{ else }} {{ template "docker-command" (print "docker pull " .RegistryURL "/" .OwnerHandle "/" .RepoName "@" .Entry.Digest) }} {{ end }} {{ end }} {{ icon "history" "size-4" }}{{ timeAgoShort .Entry.CreatedAt }} {{ if .IsOwner }} {{ if .Entry.IsTagged }} {{ else }} {{ end }} {{ end }}
{{ range .Entry.Platforms }} {{ end }}
Digest Vulnerabilities OS/Arch Size
{{ truncateDigest .Digest 32 }}
{{ if .HoldEndpoint }} {{ end }} {{ if .OS }}{{ .OS }}/{{ .Architecture }}{{ if .Variant }}/{{ .Variant }}{{ end }}{{ else }}-{{ end }} {{ if .CompressedSize }}{{ humanizeBytes .CompressedSize }}{{ else }}-{{ end }}
{{ end }} {{ define "load-more-button" }} {{ if .HasMore }}
{{ end }} {{ end }} {{ define "scan-batch-triggers" }} {{ range .ScanBatchParams }}
{{ end }} {{ end }} {{ define "repo-tags" }}
{{ if .Entries }}
Sort by
{{ if $.IsOwner }}
{{ end }}
{{ range .Entries }} {{ template "artifact-entry-markup" (dict "Entry" . "OwnerDID" $.Owner.DID "OwnerHandle" $.Owner.Handle "RepoName" $.Repository.Name "RegistryURL" $.RegistryURL "IsOwner" $.IsOwner) }} {{ 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 "IsOwner" $.IsOwner) }} {{ end }} {{ template "load-more-button" . }} {{ template "scan-batch-triggers" . }} {{ end }}