diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-30 21:52:26 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-30 21:52:26 +0000 |
commit | 64c89e601218ec0d653996514c3a90ffcc61f469 (patch) | |
tree | 1db5542a1ff9009984db35e9d3121c0d073d7958 | |
parent | 661c9f0f8fb2b1bce8ec0d4580d3684b0da856b9 (diff) | |
parent | 4d7cd4f329a3ee88864ac7594227c50357c2ccfc (diff) | |
download | gitlab-ce-64c89e601218ec0d653996514c3a90ffcc61f469.tar.gz |
Merge branch 'commits-count-badge' into 'master'
Added badge to commits tab
Fixes #1261
See merge request !465
-rw-r--r-- | app/views/projects/commits/_head.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/commits/_head.html.haml b/app/views/projects/commits/_head.html.haml index 83e4d24cf5f..a714f5f79e0 100644 --- a/app/views/projects/commits/_head.html.haml +++ b/app/views/projects/commits/_head.html.haml @@ -1,6 +1,8 @@ %ul.nav.nav-tabs = nav_link(controller: [:commit, :commits]) do - = link_to 'Commits', namespace_project_commits_path(@project.namespace, @project, @repository.root_ref) + = link_to namespace_project_commits_path(@project.namespace, @project, @repository.root_ref) do + Commits + %span.badge= number_with_precision(@repository.commit_count, precision: 0, delimiter: ',') = nav_link(controller: :compare) do = link_to 'Compare', namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref) |