summaryrefslogtreecommitdiffstats
path: root/routers/dev
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-22 13:14:03 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-22 13:14:03 -0400
commit9924e65ca11770f247723b10fcbdb81dc9534b32 (patch)
tree23995a2838ac24c88ebfd9267b567ec7e4f1a05c /routers/dev
parentc280415e0b449b420f4540886b8e16ae3c9e6454 (diff)
downloadgitea-9924e65ca11770f247723b10fcbdb81dc9534b32.tar.gz
gitea-9924e65ca11770f247723b10fcbdb81dc9534b32.zip
In progress of name template name constant
Diffstat (limited to 'routers/dev')
-rw-r--r--routers/dev/template.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/dev/template.go b/routers/dev/template.go
index 5e84d76edb..da477c94c0 100644
--- a/routers/dev/template.go
+++ b/routers/dev/template.go
@@ -8,6 +8,7 @@ import (
"github.com/go-martini/martini"
"github.com/gogits/gogs/models"
+ "github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/modules/setting"
)
@@ -22,5 +23,5 @@ func TemplatePreview(ctx *middleware.Context, params martini.Params) {
ctx.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60
ctx.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60
ctx.Data["CurDbValue"] = ""
- ctx.HTML(200, params["_1"])
+ ctx.HTML(200, base.TplName(params["_1"]))
}