diff options
author | Phil Hughes <theephil@gmail.com> | 2015-03-26 21:35:10 +0000 |
---|---|---|
committer | Phil Hughes <theephil@gmail.com> | 2015-03-30 22:46:01 +0100 |
commit | 4d7cd4f329a3ee88864ac7594227c50357c2ccfc (patch) | |
tree | 8de1b53eaf09693b0d95404b80924dcd54ce2d58 | |
parent | 090f2344ecb6631b20df5853045536f1eb0589d3 (diff) | |
download | gitlab-ce-4d7cd4f329a3ee88864ac7594227c50357c2ccfc.tar.gz |
Added badge to commits tab
-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) |