summaryrefslogtreecommitdiffstats
path: root/routers/repo/branch.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-22 16:32:00 +0800
committerGitHub <noreply@github.com>2016-11-22 16:32:00 +0800
commitcb1602840c5206da91be477a73f45b437fa43c8f (patch)
tree527d161861279bec58abb1b0608dbce1b69c61c1 /routers/repo/branch.go
parentc25063d8346c304567dcf6685b7741c7096c7645 (diff)
downloadgitea-cb1602840c5206da91be477a73f45b437fa43c8f.tar.gz
gitea-cb1602840c5206da91be477a73f45b437fa43c8f.zip
golint fixed for routers/repo/branch.go (#206)
Diffstat (limited to 'routers/repo/branch.go')
-rw-r--r--routers/repo/branch.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go
index 3083133be2..fcb6efd010 100644
--- a/routers/repo/branch.go
+++ b/routers/repo/branch.go
@@ -10,9 +10,10 @@ import (
)
const (
- BRANCH base.TplName = "repo/branch"
+ tplBranch base.TplName = "repo/branch"
)
+// Branches render repository branch page
func Branches(ctx *context.Context) {
ctx.Data["Title"] = "Branches"
ctx.Data["IsRepoToolbarBranches"] = true
@@ -27,5 +28,5 @@ func Branches(ctx *context.Context) {
}
ctx.Data["Branches"] = brs
- ctx.HTML(200, BRANCH)
+ ctx.HTML(200, tplBranch)
}