Use constants to name template file

This commit is contained in:
Unknown 2014-06-22 23:11:12 -04:00
parent 9c82073091
commit 314193029a
16 changed files with 226 additions and 134 deletions

View file

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