mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Use constants to name template file
This commit is contained in:
parent
9c82073091
commit
314193029a
16 changed files with 226 additions and 134 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue