summaryrefslogtreecommitdiffstats
path: root/routers/web/org/setting.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-03-29 09:23:45 +0200
committerGitHub <noreply@github.com>2022-03-29 09:23:45 +0200
commit76aa33d884af283619054ed14a6137efc14b6d35 (patch)
tree238f2bc5add522767df93cd6064ed4037b0d3b1b /routers/web/org/setting.go
parentMove organization related structs into sub package (#18518) (diff)
downloadforgejo-76aa33d884af283619054ed14a6137efc14b6d35.tar.xz
forgejo-76aa33d884af283619054ed14a6137efc14b6d35.zip
Move init repository related functions to modules (#19159)
* Move init repository related functions to modules * Fix lint * Use ctx but db.DefaultContext Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/org/setting.go')
-rw-r--r--routers/web/org/setting.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go
index 72c25ec25d..7dd51b253b 100644
--- a/routers/web/org/setting.go
+++ b/routers/web/org/setting.go
@@ -18,6 +18,7 @@ import (
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
+ repo_module "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/web"
user_setting "code.gitea.io/gitea/routers/web/user/setting"
@@ -232,6 +233,6 @@ func Labels(ctx *context.Context) {
ctx.Data["PageIsOrgSettings"] = true
ctx.Data["PageIsOrgSettingsLabels"] = true
ctx.Data["RequireTribute"] = true
- ctx.Data["LabelTemplates"] = models.LabelTemplates
+ ctx.Data["LabelTemplates"] = repo_module.LabelTemplates
ctx.HTML(http.StatusOK, tplSettingsLabels)
}