diff --git a/routers/badge/badge.go b/routers/badge/badge.go index 4367f1841..5e4efcdbf 100644 --- a/routers/badge/badge.go +++ b/routers/badge/badge.go @@ -2,7 +2,6 @@ package badge import ( "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" @@ -14,14 +13,6 @@ import ( "strings" ) -const ( - tplBadgeCustomize base.TplName = "admin/badges/customize" -) - -func GetBadgeCustomizePage(ctx *context.Context) { - ctx.HTML(200, tplBadgeCustomize) -} - func GetCustomizeBadgeList(ctx *context.Context) { page := ctx.QueryInt("page") pageSize := 50 diff --git a/routers/badge/category.go b/routers/badge/category.go index b5457c857..4ac85df4a 100644 --- a/routers/badge/category.go +++ b/routers/badge/category.go @@ -2,7 +2,6 @@ package badge import ( "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/routers/response" @@ -11,14 +10,6 @@ import ( "net/http" ) -const ( - tplBadgeCategory base.TplName = "admin/badges/category" -) - -func GetBadgeCategoryPage(ctx *context.Context) { - ctx.HTML(200, tplBadgeCategory) -} - func GetBadgeCategoryList(ctx *context.Context) { page := ctx.QueryInt("page") pageSize := 50 diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 648164fbe..91b5690ad 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -676,12 +676,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/badge", func() { m.Group("/category", func() { - m.Get("", badge.GetBadgeCategoryPage) m.Get("/list", badge.GetBadgeCategoryList) m.Post("/^:action(new|edit|del)$", bindIgnErr(models.BadgeCategory4Show{}), badge.OperateBadgeCategory) }) m.Group("/customize", func() { - m.Get("", badge.GetBadgeCustomizePage) m.Get("/list", badge.GetCustomizeBadgeList) }) m.Group("/users", func() {