{{ define "content" }}

{{ T "plugins.store.title" }}

{{ if .EntitledFiltered }} {{ T "plugins.store.filtered_note" }} {{ else }} {{ T "plugins.store.unfiltered_note" }} {{ end }} {{ if .CatalogError }} — {{ T "plugins.store.catalog_error" }} {{ end }}
{{ T "plugins.store.manage_link" }}
{{ if .Items }} {{ if .Categories }}
{{ range .Categories }} {{ end }}
{{ end }}
{{ range .Items }}

{{ .Name }}

v{{ .Version }}

{{ .Description }}

{{ T (printf "plugins.type.%s" .Type) }} {{ if .Installed }} {{ T "plugins.store.state.installed" }} {{ else if .Downloaded }} {{ T "plugins.store.state.downloaded" }} {{ end }} {{ if eq .StatusState "failed" }} {{ if .StatusMessageKey }}{{ T .StatusMessageKey }}{{ else }}{{ T "plugins.store.state.failed" }}{{ end }} {{ if .Retryable }}· {{ T "plugins.store.state.retryable" }}{{ end }} {{ else if .StatusState }} ⏳ {{ .StatusState }} {{ end }}
{{ if .Installed }} {{ T "plugins.store.manage_link" }} {{ else if .Downloaded }} {{ else }} {{ end }}
{{ end }}
{{ else }}
{{ if .CatalogError }} {{/* The catalog didn't load (offline / blocked) — NOT an approvals problem. */}}

{{ T "plugins.store.offline" }}

{{ else if .EntitledFiltered }} {{/* Catalog reached, entitlements known, but nothing approved for this store. */}}

{{ T "plugins.store.empty" }}

{{ else }} {{/* Catalog reached, approvals unknown, but the catalog itself is empty. */}}

{{ T "plugins.store.none_available" }}

{{ end }}
{{ end }} {{ end }}