From d87184ddc3b964a39d6f70d1c2beb682e3f3be1b Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 14 Jul 2026 20:43:52 -0500 Subject: [PATCH] fix(metadata): remove redundant Organization field from repo metadata page The Organization value is derived from the org profile (repo owner) and was shown as a read-only field; it added no value, so remove it entirely from the settings page. The DerivedOrgName model method stays (API still derives org on read). See #771. Claude-Session: https://claude.ai/code/session_01Bqe7fAuHQeiLueYfeHFrHw --- routers/web/repo/setting/metadata.go | 5 ++--- templates/repo/settings/metadata.tmpl | 9 +-------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/routers/web/repo/setting/metadata.go b/routers/web/repo/setting/metadata.go index 58abe8c548..c18838f5c4 100644 --- a/routers/web/repo/setting/metadata.go +++ b/routers/web/repo/setting/metadata.go @@ -40,9 +40,8 @@ func Metadata(ctx *context.Context) { } } ctx.Data["Manifest"] = manifest - // Organization is derived from the org profile (repo owner), not stored. - // It is displayed read-only. See issue #771. - ctx.Data["DerivedOrg"] = ctx.Repo.Repository.DerivedOrgName(ctx) + // Organization is derived from the org profile (repo owner), not stored, + // and is no longer surfaced on the metadata page (redundant). See #771. // Platform dropdown options come from the admin-configurable setting // (Admin -> Metadata). Keep the repo's current value selectable even if it diff --git a/templates/repo/settings/metadata.tmpl b/templates/repo/settings/metadata.tmpl index 8914ac430b..ee398f36a3 100644 --- a/templates/repo/settings/metadata.tmpl +++ b/templates/repo/settings/metadata.tmpl @@ -6,8 +6,7 @@
{{.CsrfTokenHtml}} -
-
+
{{if eq .Manifest.Platform "joomla"}} @@ -16,12 +15,6 @@ {{end}}
-
- - -

Derived from the organization profile (repository owner).

-
-
-- 2.52.0