summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-09 21:20:53 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-09 21:20:53 +0000
commit8f6892500a0ceefb30f762c7627f0472f51b203b (patch)
treebaa91a79de8716bd89aa5dd10084538a7484d922
parent9b3277873c53b3ba14742ec79e2dc84632db39ea (diff)
parent98958decce9e3a5764de609f0c730c7c5fde65d6 (diff)
downloadgitlab-ce-8f6892500a0ceefb30f762c7627f0472f51b203b.tar.gz
Merge branch 'rs-delimit-build-counts' into 'master'
Add number_with_delimiter to build counts See merge request !2046
-rw-r--r--app/views/projects/builds/index.html.haml9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml
index 742676305a9..fbf2c293db8 100644
--- a/app/views/projects/builds/index.html.haml
+++ b/app/views/projects/builds/index.html.haml
@@ -12,17 +12,20 @@
%li{class: ('active' if @scope.nil?)}
= link_to project_builds_path(@project) do
Running
- %span.badge.js-running-count= @all_builds.running_or_pending.count(:id)
+ %span.badge.js-running-count
+ = number_with_delimiter(@all_builds.running_or_pending.count(:id))
%li{class: ('active' if @scope == 'finished')}
= link_to project_builds_path(@project, scope: :finished) do
Finished
- %span.badge.js-running-count= @all_builds.finished.count(:id)
+ %span.badge.js-running-count
+ = number_with_delimiter(@all_builds.finished.count(:id))
%li{class: ('active' if @scope == 'all')}
= link_to project_builds_path(@project, scope: :all) do
All
- %span.badge.js-totalbuilds-count= @all_builds.count(:id)
+ %span.badge.js-totalbuilds-count
+ = number_with_delimiter(@all_builds.count(:id))
.gray-content-block
#{(@scope || 'running').capitalize} builds from this project