Browse Source

#2910

update
medal-v1
chenyifan01 2 years ago
parent
commit
326946e366
3 changed files with 0 additions and 20 deletions
  1. +0
    -9
      routers/badge/badge.go
  2. +0
    -9
      routers/badge/category.go
  3. +0
    -2
      routers/routes/routes.go

+ 0
- 9
routers/badge/badge.go View File

@@ -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


+ 0
- 9
routers/badge/category.go View File

@@ -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


+ 0
- 2
routers/routes/routes.go View File

@@ -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() {


Loading…
Cancel
Save