{{define "content" -}} {{template "repohead" .}} {{- range $n, $img := .Images}}

{{template "icon" "package"}}{{.Ref}}container {{- with .Versions}}{{len .}} version{{if ne (len .) 1}}s{{end}}{{end}}

{{template "copyfield" (dict "ID" (printf "img-%d" $n) "Value" .Pull "Label" "docker pull command")}}
{{- if .Missing}}

Image details aren't available right now. The pull command still works.

{{- end}} {{- with .Versions}}
    {{- range $i, $v := .}}
  1. {{template "icon" "tag"}}
    {{range .Tags}}{{.}}{{end}} {{slice .Digest 7 19}} · {{len .Platforms}} platform{{if ne (len .Platforms) 1}}s{{end}} · {{.Kind}}
    {{- if not .Created.IsZero}} {{- end}} {{template "icon" "chevron"}}
    Digest
    {{.Digest}}
    {{- if not .Created.IsZero}}
    Created
    {{end}}
    Type
    {{.Kind}}
    {{- range .Meta}}
    {{.Key}}
    {{if .Href}}{{.Value}}{{else}}{{.Value}}{{end}}
    {{- end}}
    {{template "copyfield" (dict "ID" (printf "img-%d-%d" $n $i) "Value" .Pull "Label" "docker pull by digest")}}
      {{- range .Platforms}}
    • {{.Name}} {{or .Distro "No os-release (scratch or distroless)"}} {{size .Size}} · {{.Layers}} layer{{if ne .Layers 1}}s{{end}} {{.Digest}}
    • {{- end}}
  2. {{- end}}
{{- end}} {{- with .More}}

{{.}} older version{{if ne . 1}}s{{end}} not shown.

{{- end}}
{{- end}} {{- if .Packages}}

{{template "icon" "package"}}{{if .Images}}Other packages{{else}}{{len .Packages}} package{{if ne (len .Packages) 1}}s{{end}}{{end}}

    {{- range .Packages}}
  1. {{template "icon" "package"}}
    {{.Name}} {{.Type}} {{.Version}}
  2. {{- end}}
{{- end}} {{- if and (not .Images) (not .Packages)}} {{template "emptystate" (dict "Icon" "package" "Title" "No packages." "Hint" "Container images published for this repository show up here, with a docker pull command.")}} {{- end}} {{- end}}