Commit 6c6cdd23ff8241fd2f8c52143f102c9b914f5233

Authored by Dmitriy Zaporozhets
1 parent 1bde9277

Prevent timeout for Commits#stats page for huge repos

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/projects/repositories/stats.html.haml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 %hr 5 %hr
6 %p 6 %p
7 %b Total commits: 7 %b Total commits:
8 - %span= @stats.commits_count 8 + %span= @repository.commit_count
9 %p 9 %p
10 %b Total files in #{@repository.root_ref}: 10 %b Total files in #{@repository.root_ref}:
11 %span= @stats.files_count 11 %span= @stats.files_count