{{ define "repository" }} {{ if .Repository.Title }}{{ .Repository.Title }}{{ else }}{{ .Owner.Handle }}/{{ .Repository.Name }}{{ end }} - ATCR {{ template "head" . }} {{ template "nav" . }}
{{ if .Repository.IconURL }} {{ .Repository.Name }} {{ else }}
{{ firstChar .Repository.Name }}
{{ end }}

{{ .Owner.Handle }} / {{ .Repository.Name }}

{{ if .Repository.Description }}

{{ .Repository.Description }}

{{ end }}
{{ if or .Repository.Licenses .Repository.SourceURL .Repository.DocumentationURL .Repository.Version }} {{ else }} {{ end }}

Pull this image

{{ if .Tags }} {{ $firstTag := index .Tags 0 }} {{ template "docker-command" (print "docker pull " $.RegistryURL "/" $.Owner.Handle "/" $.Repository.Name ":" $firstTag.Tag.Tag) }} {{ else }} {{ template "docker-command" (print "docker pull " $.RegistryURL "/" $.Owner.Handle "/" $.Repository.Name ":latest") }} {{ end }}
{{ if .ReadmeHTML }}

Overview

{{ .ReadmeHTML }}
{{ end }}

Tags

{{ if .Tags }}
{{ range .Tags }}
{{ .Tag.Tag }} {{ if .IsMultiArch }} Multi-arch {{ end }}
{{ if $.IsOwner }} {{ end }}
{{ .Tag.Digest }}
{{ if .Platforms }}
{{ range .Platforms }} {{ .OS }}/{{ .Architecture }}{{ if .Variant }}/{{ .Variant }}{{ end }} {{ end }}
{{ end }}
{{ template "docker-command" (print "docker pull " $.RegistryURL "/" $.Owner.Handle "/" $.Repository.Name ":" .Tag.Tag) }}
{{ end }}
{{ else }}

No tags available

{{ end }}

Manifests

{{ if .Manifests }}
{{ range .Manifests }}
{{ if .IsManifestList }} Multi-arch {{ else }} Image {{ end }} {{ if .Pending }} Checking... {{ else if not .Reachable }} Offline {{ end }}
{{ .Manifest.Digest }}
{{ if $.IsOwner }} {{ end }}
{{ if .Tags }} Tags: {{ range $index, $tag := .Tags }}{{ if $index }}, {{ end }}{{ $tag }}{{ end }} {{ else }} (untagged) {{ end }}
{{ if .IsManifestList }} {{ if .Platforms }}
{{ range .Platforms }} {{ .OS }}/{{ .Architecture }}{{ if .Variant }}/{{ .Variant }}{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }}
{{ else }}

No manifests available

{{ end }}
{{ if .ReadmeHTML }}
{{ end }}
{{ end }}