+ {{template "org/header" .}} +
+ + {{if .NewMasterKey}} +
+
{{ctx.Locale.Tr "repo.licenses.master_key_created"}}
+

{{ctx.Locale.Tr "repo.licenses.master_key_created_copy"}}

+ {{.NewMasterKey}} +
+ {{end}} + + {{if .NewKeyCreated}} +
+
{{ctx.Locale.Tr "repo.licenses.key_created"}}
+

{{ctx.Locale.Tr "repo.licenses.key_created_copy"}}

+ {{.NewKeyCreated}} +
+ {{end}} + +

+ {{svg "octicon-key" 16}} {{ctx.Locale.Tr "repo.licenses.packages"}} + {{if .IsRepoAdmin}} + + {{ctx.Locale.Tr "repo.licenses.new_package"}} + + {{end}} +

+
+ {{if .IsRepoAdmin}} + + {{end}} + + {{if .LicensePackages}} + + + + + + + + + {{if .IsRepoAdmin}}{{end}} + + + + {{range .LicensePackages}} + + + + + + + {{if $.IsRepoAdmin}} + + {{end}} + + {{end}} + +
{{ctx.Locale.Tr "repo.licenses.package_name"}}{{ctx.Locale.Tr "repo.licenses.duration"}}{{ctx.Locale.Tr "repo.licenses.channels"}}{{ctx.Locale.Tr "repo.licenses.keys_issued"}}{{ctx.Locale.Tr "repo.licenses.status"}}
{{.Name}}{{if .Description}}
{{.Description}}{{end}}
{{if eq .DurationDays 0}}{{ctx.Locale.Tr "repo.licenses.lifetime"}}{{else}}{{.DurationDays}} {{ctx.Locale.Tr "repo.licenses.days"}}{{end}}{{if .AllowedChannels}}{{.AllowedChannels}}{{else}}{{ctx.Locale.Tr "repo.licenses.all_channels"}}{{end}}{{.KeyCount}}{{if .IsActive}}{{ctx.Locale.Tr "repo.licenses.active"}}{{else}}{{ctx.Locale.Tr "repo.licenses.inactive"}}{{end}} +
+ {{$.CsrfTokenHtml}} + + +
+
+ {{else}} +
+ {{svg "octicon-key" 48}} +

{{ctx.Locale.Tr "repo.licenses.none"}}

+

{{ctx.Locale.Tr "repo.licenses.none_desc"}}

+
+ {{end}} +
+ + {{if .LicenseKeys}} +

+ {{svg "octicon-lock" 16}} {{ctx.Locale.Tr "repo.licenses.issued_keys"}} +

+
+ + + + + + + + {{if .IsRepoAdmin}}{{end}} + + + + {{range .LicenseKeys}} + + + + + + {{if $.IsRepoAdmin}} + + {{end}} + + {{end}} + +
{{ctx.Locale.Tr "repo.licenses.key_prefix"}}{{ctx.Locale.Tr "repo.licenses.licensee"}}{{ctx.Locale.Tr "repo.licenses.expires"}}{{ctx.Locale.Tr "repo.licenses.status"}}
{{.KeyPrefix}}{{if .IsInternal}} Master{{end}}{{.LicenseeName}}{{if .LicenseeEmail}} ({{.LicenseeEmail}}){{end}}{{if eq .ExpiresUnix 0}}{{ctx.Locale.Tr "repo.licenses.never"}}{{else}}{{DateUtils.TimeSince .ExpiresUnix}}{{end}}{{if .IsActive}}{{ctx.Locale.Tr "repo.licenses.active"}}{{else}}{{ctx.Locale.Tr "repo.licenses.inactive"}}{{end}} +
+ {{$.CsrfTokenHtml}} + +
+
+
+ {{end}} +
+