diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-22 23:33:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-22 15:33:19 +0000 |
commit | a163c53a606b0e40d709d8323056d00500f8135b (patch) | |
tree | 99985fd782d78291e294bd36dfa76fab709e7100 /routers/web/devtest | |
parent | afe314fa772ccfa4bef51bafc91164844585dd01 (diff) | |
download | gitea-a163c53a606b0e40d709d8323056d00500f8135b.tar.gz gitea-a163c53a606b0e40d709d8323056d00500f8135b.zip |
Refactor template & test related code (#32938)
Move some legacy code from "base" package to proper packages.
Diffstat (limited to 'routers/web/devtest')
-rw-r--r-- | routers/web/devtest/devtest.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/devtest/devtest.go b/routers/web/devtest/devtest.go index 0068c9fe88..0bc84d2d1e 100644 --- a/routers/web/devtest/devtest.go +++ b/routers/web/devtest/devtest.go @@ -9,7 +9,6 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/templates" "code.gitea.io/gitea/services/context" ) @@ -62,5 +61,5 @@ func Tmpl(ctx *context.Context) { time.Sleep(2 * time.Second) } - ctx.HTML(http.StatusOK, base.TplName("devtest"+path.Clean("/"+ctx.PathParam("sub")))) + ctx.HTML(http.StatusOK, templates.TplName("devtest"+path.Clean("/"+ctx.PathParam("sub")))) } |