mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-16 14:47:48 +02:00
rename UpdateGlobalRepoFrom -> UpdateGlobalRepoForm
This commit is contained in:
parent
10edee88c3
commit
a779d6412d
@ -47,7 +47,7 @@ func Repos(ctx *context.Context) {
|
||||
}
|
||||
|
||||
func UpdateRepoPost(ctx *context.Context) {
|
||||
form := web.GetForm(ctx).(*forms.UpdateGlobalRepoFrom)
|
||||
form := web.GetForm(ctx).(*forms.UpdateGlobalRepoForm)
|
||||
ctx.Data["Title"] = ctx.Tr("admin.repositories")
|
||||
ctx.Data["PageIsAdminRepositories"] = true
|
||||
|
||||
|
||||
@ -764,7 +764,7 @@ func registerWebRoutes(m *web.Router) {
|
||||
m.Get("", admin.Repos)
|
||||
m.Combo("/unadopted").Get(admin.UnadoptedRepos).Post(admin.AdoptOrDeleteRepository)
|
||||
m.Post("/delete", admin.DeleteRepo)
|
||||
m.Post("", web.Bind(forms.UpdateGlobalRepoFrom{}), admin.UpdateRepoPost)
|
||||
m.Post("", web.Bind(forms.UpdateGlobalRepoForm{}), admin.UpdateRepoPost)
|
||||
})
|
||||
|
||||
m.Group("/packages", func() {
|
||||
|
||||
@ -45,7 +45,7 @@ type CreateRepoForm struct {
|
||||
ObjectFormatName string
|
||||
}
|
||||
|
||||
type UpdateGlobalRepoFrom struct {
|
||||
type UpdateGlobalRepoForm struct {
|
||||
GitSizeMax string `form:"GitSizeMax"`
|
||||
LFSSizeMax string `form:"LFSSizeMax"`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user