summaryrefslogtreecommitdiffstats
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-22 23:11:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-22 23:11:12 -0400
commit314193029a246c2498c6d54c085d57f7589c8dbe (patch)
tree302cacb210a972d8050dbf1882a89c5ace1e6218 /routers/repo/pull.go
parent9c820730918443ca2b498dfa71b3131d73cec526 (diff)
downloadgitea-314193029a246c2498c6d54c085d57f7589c8dbe.tar.gz
gitea-314193029a246c2498c6d54c085d57f7589c8dbe.zip
Use constants to name template file
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 430c6a815f..db208f9fbc 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -7,10 +7,15 @@ package repo
import (
"github.com/go-martini/martini"
+ "github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
)
+const (
+ PULLS base.TplName = "repo/pulls"
+)
+
func Pulls(ctx *middleware.Context, params martini.Params) {
ctx.Data["IsRepoToolbarPulls"] = true
- ctx.HTML(200, "repo/pulls")
+ ctx.HTML(200, PULLS)
}