mirror of
https://github.com/go-gitea/gitea
synced 2025-01-08 00:44:26 +00:00
Fix broken forms (#33082)
This commit is contained in:
parent
d371aa3031
commit
7a35f90b29
@ -228,8 +228,12 @@ func CreatePost(ctx *context.Context) {
|
||||
ctx.Data["Licenses"] = repo_module.Licenses
|
||||
ctx.Data["Readmes"] = repo_module.Readmes
|
||||
|
||||
// the logic is still buggy, the complete fix is in 1.24
|
||||
ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
|
||||
ctx.Data["CanCreateRepo"] = ctx.Doer.CanCreateRepo()
|
||||
ctx.Data["MaxCreationLimit"] = ctx.Doer.MaxCreationLimit()
|
||||
ctx.Data["SupportedObjectFormats"] = git.DefaultFeatures().SupportedObjectFormats
|
||||
ctx.Data["DefaultObjectFormat"] = git.Sha1ObjectFormat
|
||||
|
||||
ctxUser := checkContextUser(ctx, form.UID)
|
||||
if ctx.Written() {
|
||||
|
@ -483,7 +483,7 @@ textarea:focus,
|
||||
margin-bottom: 1em;
|
||||
width: 100%;
|
||||
}
|
||||
.new.org .ui.form .field input {
|
||||
.new.org .ui.form .field input:not([type="checkbox"], [type="radio"]) {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user