fix(metadata): remove redundant Organization field from repo metadata page #787
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user