fix(metadata): remove redundant Organization field from repo metadata page #787

Closed
jmiller wants to merge 1 commits from fix/metadata-remove-org-field into main
2 changed files with 3 additions and 11 deletions
+2 -3
View File
@@ -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
+1 -8
View File
@@ -6,8 +6,7 @@
<form class="ui form" method="post" action="{{.RepoLink}}/settings/metadata?action=manifest">
{{.CsrfTokenHtml}}
<div class="two fields">
<div class="field">
<div class="field">
{{if eq .Manifest.Platform "joomla"}}
<label>Element Name</label>
<input name="name" value="{{.Manifest.Name}}" placeholder="e.g. mokowaas">
@@ -16,12 +15,6 @@
<input name="name" value="{{.Manifest.Name}}" placeholder="Project name">
{{end}}
</div>
<div class="field">
<label>Organization</label>
<input value="{{.DerivedOrg}}" placeholder="Organization" readonly>
<p class="help">Derived from the organization profile (repository owner).</p>
</div>
</div>
<div class="three fields">
<div class="field">
<label>Version Prefix</label>