Add number_with_delimiter to build counts
This commit is contained in:
parent
cfe46f485d
commit
98958decce
1 changed files with 6 additions and 3 deletions
|
@ -12,17 +12,20 @@
|
||||||
%li{class: ('active' if @scope.nil?)}
|
%li{class: ('active' if @scope.nil?)}
|
||||||
= link_to project_builds_path(@project) do
|
= link_to project_builds_path(@project) do
|
||||||
Running
|
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')}
|
%li{class: ('active' if @scope == 'finished')}
|
||||||
= link_to project_builds_path(@project, scope: :finished) do
|
= link_to project_builds_path(@project, scope: :finished) do
|
||||||
Finished
|
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')}
|
%li{class: ('active' if @scope == 'all')}
|
||||||
= link_to project_builds_path(@project, scope: :all) do
|
= link_to project_builds_path(@project, scope: :all) do
|
||||||
All
|
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
|
.gray-content-block
|
||||||
#{(@scope || 'running').capitalize} builds from this project
|
#{(@scope || 'running').capitalize} builds from this project
|
||||||
|
|
Loading…
Reference in a new issue