From dc2647977ce8e5f4ed376347c026c6293dee29fc Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 30 May 2026 23:21:42 -0500 Subject: [PATCH] fix(ui): use HTML details/summary for package create toggle Replace broken JavaScript onclick toggle with native HTML
/ element. Works without JS, accessible, and styled as a Fomantic UI button. Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/org/licenses.tmpl | 73 ++++++++++++++++++------------------ templates/repo/licenses.tmpl | 70 +++++++++++++++++----------------- 2 files changed, 72 insertions(+), 71 deletions(-) diff --git a/templates/org/licenses.tmpl b/templates/org/licenses.tmpl index 03d3f12f23..e76059b082 100644 --- a/templates/org/licenses.tmpl +++ b/templates/org/licenses.tmpl @@ -19,49 +19,48 @@ {{end}} -

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

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

{{if .IsRepoAdmin}} -
{{end}} - {{if .LicensePackages}} diff --git a/templates/repo/licenses.tmpl b/templates/repo/licenses.tmpl index 4fd62a88eb..c4fa9207b3 100644 --- a/templates/repo/licenses.tmpl +++ b/templates/repo/licenses.tmpl @@ -81,41 +81,43 @@ {{/* ── Create New License Package ── */}} {{if .IsRepoAdmin}} -

- {{svg "octicon-plus" 16}} {{ctx.Locale.Tr "repo.licenses.create_new_package"}} -

-
-
- {{.CsrfTokenHtml}} -
-
- - -
-
- - -
+
+
+ {{svg "octicon-plus" 14}} {{ctx.Locale.Tr "repo.licenses.new_package"}} +
+ + {{.CsrfTokenHtml}} +
+
+ + +
+
+ + +
+
+
+
+ + +

0 = {{ctx.Locale.Tr "repo.licenses.lifetime"}}

+
+
+ + +

0 = unlimited

+
+
+ + +

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

+
+
+ +
-
-
- - -

0 = {{ctx.Locale.Tr "repo.licenses.lifetime"}}

-
-
- - -

0 = unlimited

-
-
- - -

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

-
-
- - +
{{end}} -- 2.52.0