Commit 3c91c5810e5fb8f87a6235f363d5a24a08a50a09

Authored by Dmitriy Zaporozhets
2 parents 884390de f3497235

Merge pull request #6772 from dblessing/commit_counter

Show actual commit count on project dashboard
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/views/projects/_home_panel.html.haml
... ... @@ -25,7 +25,7 @@
25 25 - unless empty_repo
26 26 .col-md-4
27 27 .project-home-links
28   - = link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref)
29   - = link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project)
30   - = link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project)
  28 + = link_to pluralize(number_with_delimiter(@repository.commit_count), 'commit'), project_commits_path(@project, @ref || @repository.root_ref)
  29 + = link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), project_branches_path(@project)
  30 + = link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), project_tags_path(@project)
31 31 %span.light.prepend-left-20= repository_size
... ...