diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index f5e59b0357..0b57547c9c 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -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() { diff --git a/web_src/css/form.css b/web_src/css/form.css index 5dd5e05bec..26f00e4d99 100644 --- a/web_src/css/form.css +++ b/web_src/css/form.css @@ -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; } }