diff options
author | Unknwon <u@gogs.io> | 2015-12-19 21:09:03 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-19 21:09:03 -0500 |
commit | f00fef0cd0c69107c8d4269ef3cf93db076e6d95 (patch) | |
tree | 83b3ca78a1cce8960355ae6760fc5f62941c4ceb /cmd | |
parent | 2d3ecbe5b2aabe33ae0086dc7ecc79bc0269dc35 (diff) | |
download | gitea-f00fef0cd0c69107c8d4269ef3cf93db076e6d95.tar.gz gitea-f00fef0cd0c69107c8d4269ef3cf93db076e6d95.zip |
#2251 show commits count in PR tabs
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 5127919012..cf40797ab0 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -492,8 +492,8 @@ func runWeb(ctx *cli.Context) { m.Get("/archive/*", repo.Download) m.Group("/pulls/:index", func() { - m.Get("/commits", repo.ViewPullCommits) - m.Get("/files", repo.ViewPullFiles) + m.Get("/commits", middleware.RepoRef(), repo.ViewPullCommits) + m.Get("/files", middleware.RepoRef(), repo.ViewPullFiles) m.Post("/merge", reqRepoAdmin, repo.MergePullRequest) }, repo.MustEnablePulls) |