diff options
author | Drew Blessing <drew.blessing@me.com> | 2014-04-14 10:59:22 -0500 |
---|---|---|
committer | Drew Blessing <drew.blessing@me.com> | 2014-04-14 12:01:18 -0500 |
commit | f34972358c235a3bdd6b688a8303acd9f888d33f (patch) | |
tree | 9e9be05a55a9b88ebed50c275e49d8d73ffc4948 | |
parent | fc6517f1da4dec8c43ab18c4790f3b9b1fcb1208 (diff) | |
download | gitlab-ce-f34972358c235a3bdd6b688a8303acd9f888d33f.tar.gz |
Show actual commit count on project dashboard
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 48e6ea91d94..82ec68c9165 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -25,7 +25,7 @@ - unless empty_repo .col-md-4 .project-home-links - = link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref) - = link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project) - = link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project) + = link_to pluralize(number_with_delimiter(@repository.commit_count), 'commit'), project_commits_path(@project, @ref || @repository.root_ref) + = link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), project_branches_path(@project) + = link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), project_tags_path(@project) %span.light.prepend-left-20= repository_size |