diff options
author | Unknwon <u@gogs.io> | 2017-03-10 15:13:48 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-10 15:13:48 -0500 |
commit | ebc0943713196abe939e445f35e0f726f5cbee1e (patch) | |
tree | e4f7248ba87586c12129bd36718f27d571ece513 /routers/repo/pull.go | |
parent | 451aef7a1c177b58c4519239a65dbfbab32b4888 (diff) |
templates/repo: only show Git stats in repository home page (#3518)
Move 'Commits' and 'Releases' tabs down to body.
This patch also reduces page load time for pages that do not need
to use commits count anywhere. Get commits count can hurt
performance badly for huge repositories that has tens of thousands
commits like Linux Kernel.
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index aa9a6bcb..e6de352a 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -280,7 +280,7 @@ func ViewPullCommits(ctx *context.Context) { commits = models.ValidateCommitsWithEmails(commits) ctx.Data["Commits"] = commits - ctx.Data["CommitCount"] = commits.Len() + ctx.Data["CommitsCount"] = commits.Len() ctx.HTML(200, PULL_COMMITS) } |