{{template "repo/header" .}}
-

- {{svg "octicon-key" 16}} {{ctx.Locale.Tr "repo.licenses"}} + + {{if .NewKeyCreated}} +
+
{{ctx.Locale.Tr "repo.licenses.key_created"}}
+

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

+ {{.NewKeyCreated}} +
+ {{end}} + + {{/* ── License Packages ── */}} +

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

+ {{if .IsRepoAdmin}} +
+
+ {{.CsrfTokenHtml}} +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +

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

+
+
+ +
+
+
+ {{end}} + {{if .LicensePackages}} -
{{ctx.Locale.Tr "repo.licenses.packages"}}
@@ -16,6 +65,7 @@ + {{if .IsRepoAdmin}}{{end}} @@ -26,6 +76,17 @@ + {{if $.IsRepoAdmin}} + + {{end}} {{end}} @@ -37,10 +98,14 @@

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

{{end}} + - {{if .LicenseKeys}} -
-
{{ctx.Locale.Tr "repo.licenses.issued_keys"}}
+ {{/* ── Issued Keys ── */}} + {{if .LicenseKeys}} +

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

+
{{ctx.Locale.Tr "repo.licenses.channels"}} {{ctx.Locale.Tr "repo.licenses.keys_issued"}} {{ctx.Locale.Tr "repo.licenses.status"}}
{{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}} + + +
+
@@ -48,6 +113,7 @@ + {{if .IsRepoAdmin}}{{end}} @@ -57,11 +123,42 @@ + {{if $.IsRepoAdmin}} + + {{end}} {{end}}
{{ctx.Locale.Tr "repo.licenses.licensee"}} {{ctx.Locale.Tr "repo.licenses.expires"}} {{ctx.Locale.Tr "repo.licenses.status"}}
{{.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}} +
+ {{end}} + + {{/* ── Update Feed Info ── */}} +

+ {{svg "octicon-rss" 16}} {{ctx.Locale.Tr "repo.licenses.update_feeds"}} +

+
+
+ +
+ + +
+
+
+ +
+ + +
+