diff options
author | Bwko <bouwko@gmail.com> | 2017-10-26 02:49:16 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-26 08:49:16 +0800 |
commit | 3ab580c8d6b8a2c063d848f8e3002347c9e5cebb (patch) | |
tree | 3f66f793be25db1ca8baac8d5333e39bfdd4f7e1 /routers/repo/commit.go | |
parent | e86a0bf3feab82c1b3439806245083dffb2f37c9 (diff) | |
download | gitea-3ab580c8d6b8a2c063d848f8e3002347c9e5cebb.tar.gz gitea-3ab580c8d6b8a2c063d848f8e3002347c9e5cebb.zip |
Add branch overiew page (#2108)
* Add branch overiew page
* fix changed method name on sub menu
* remove unused code
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 { |