summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-30 21:52:26 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-30 21:52:26 +0000
commit64c89e601218ec0d653996514c3a90ffcc61f469 (patch)
tree1db5542a1ff9009984db35e9d3121c0d073d7958 /app
parent661c9f0f8fb2b1bce8ec0d4580d3684b0da856b9 (diff)
parent4d7cd4f329a3ee88864ac7594227c50357c2ccfc (diff)
downloadgitlab-ce-64c89e601218ec0d653996514c3a90ffcc61f469.tar.gz
Merge branch 'commits-count-badge' into 'master'
Added badge to commits tab Fixes #1261 See merge request !465
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/commits/_head.html.haml4
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)