{{if eq .PackageDescriptor.Package.Type "container"}}

{{.i18n.Tr "packages.installation"}}

{{if eq .PackageDescriptor.Metadata.Type "helm"}}
helm pull oci://{{.RegistryHost}}/{{.PackageDescriptor.Owner.LowerName}}/{{.PackageDescriptor.Package.LowerName}} --version {{.PackageDescriptor.Version.LowerVersion}}
{{else}} {{$separator := ":"}} {{if not .PackageDescriptor.Metadata.IsTagged}} {{$separator = "@"}} {{end}}
docker pull {{.RegistryHost}}/{{.PackageDescriptor.Owner.LowerName}}/{{.PackageDescriptor.Package.LowerName}}{{$separator}}{{.PackageDescriptor.Version.LowerVersion}}
{{end}}
{{if .PackageDescriptor.Metadata.MultiArch}}

{{.i18n.Tr "packages.container.multi_arch"}}

{{range $arch, $digest := .PackageDescriptor.Metadata.MultiArch}}
{{if eq $.PackageDescriptor.Metadata.Type "oci"}}
docker pull {{$.RegistryHost}}/{{$.PackageDescriptor.Owner.LowerName}}/{{$.PackageDescriptor.Package.LowerName}}@{{$digest}}
{{end}}
{{end}}
{{end}} {{if .PackageDescriptor.Metadata.Description}}

{{.i18n.Tr "packages.about"}}

{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if .PackageDescriptor.Metadata.ImageLayers}}

{{.i18n.Tr "packages.container.layers"}}

{{range .PackageDescriptor.Metadata.ImageLayers}} {{end}}
{{.}}
{{end}} {{if .PackageDescriptor.Metadata.Labels}}

{{.i18n.Tr "packages.container.labels"}}

{{range $key, $value := .PackageDescriptor.Metadata.Labels}} {{end}}
{{.i18n.Tr "packages.container.labels.key"}} {{.i18n.Tr "packages.container.labels.value"}}
{{$key}} {{$value}}
{{end}} {{end}}