aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-11 02:13:42 -0500
committerUnknwon <u@gogs.io>2017-03-11 02:13:42 -0500
commit61e2bff757516d26772c78259961d8fefeae4bdb (patch)
tree991d50bbaad89ed68c94ebc195dccfd3dd053e40 /routers/repo/commit.go
parent9713016637d2a034e2977133d2526709ce21dd38 (diff)
repo: commits, branches and releases should highlight files tab
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 9656d5cc..0153ccfe 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -22,6 +22,7 @@ const (
)
func RefCommits(ctx *context.Context) {
+ ctx.Data["PageIsViewCode"] = true
switch {
case len(ctx.Repo.TreePath) == 0:
Commits(ctx)