{{define "content"}}

{{.Eyebrow}}

{{.Heading}}

{{.Description}}

Create API key
{{if .APIKeys}}
{{range .APIKeys}}

{{.APIKey.Name}}

{{.APIKey.KeyPrefix}}

{{if .APIKey.IsActive}}Active{{else}}Revoked{{end}}

{{if .APIKey.Description}}{{.APIKey.Description}}{{else}}No description yet.{{end}}

Scope: {{.APIKey.ScopeMode}}

Rule rows: {{.ProjectRuleCount}} project, {{.TagRuleCount}} tag

Permissions: {{if .APIKey.CanDownload}}download{{else}}no-download{{end}}, {{if .APIKey.CanUpload}}upload{{else}}no-upload{{end}}, {{if .APIKey.CanDelete}}delete{{else}}no-delete{{end}}, {{if .APIKey.CanManageProjects}}manage-projects{{else}}no-manage-projects{{end}}

Updated: {{.APIKey.UpdatedAt.Format "2006-01-02 15:04 UTC"}}

Last used: {{if .APIKey.LastUsedAt}}{{.APIKey.LastUsedAt.Format "2006-01-02 15:04 UTC"}}{{else}}Never{{end}}

Expires: {{if .APIKey.ExpiresAt}}{{.APIKey.ExpiresAt.Format "2006-01-02 15:04 UTC"}}{{else}}No expiry{{end}}

Open API key
{{end}}
{{else}}

No API keys yet

Create the first key to let client applications authenticate against the project, metadata, and download endpoints.

{{end}} {{end}}