diff options
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 95630fcece..21a0d9dd9f 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -53,6 +53,7 @@ func Commits(ctx *context.Context) { ctx.Handle(404, "Commit not found", nil) return } + ctx.Data["PageIsViewCode"] = true commitsCount, err := ctx.Repo.Commit.CommitsCount() if err != nil { @@ -88,6 +89,7 @@ func Commits(ctx *context.Context) { // Graph render commit graph - show commits from all branches. func Graph(ctx *context.Context) { ctx.Data["PageIsCommits"] = true + ctx.Data["PageIsViewCode"] = true commitsCount, err := ctx.Repo.Commit.CommitsCount() if err != nil { @@ -114,6 +116,7 @@ func Graph(ctx *context.Context) { // SearchCommits render commits filtered by keyword func SearchCommits(ctx *context.Context) { ctx.Data["PageIsCommits"] = true + ctx.Data["PageIsViewCode"] = true keyword := strings.Trim(ctx.Query("q"), " ") if len(keyword) == 0 { |