diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-14 21:32:47 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-14 21:32:47 +0300 |
commit | 3c91c5810e5fb8f87a6235f363d5a24a08a50a09 (patch) | |
tree | 88d43ec648d49ec415ffdf9a4e0a470aa0d27f6a | |
parent | 884390de20532fc78dd1b78efafe9a5acc534c6d (diff) | |
parent | f34972358c235a3bdd6b688a8303acd9f888d33f (diff) | |
download | gitlab-ce-3c91c5810e5fb8f87a6235f363d5a24a08a50a09.tar.gz |
Merge pull request #6772 from dblessing/commit_counter
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 |