summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/index.html.haml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-15 15:49:52 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-15 15:50:40 +0200
commit0d09b5fefc635120cf6e4234a401028f815fb326 (patch)
tree6ce4273e7de5d598afe28bdee582313922ae77ef /app/views/projects/builds/index.html.haml
parent62bf2eb862643352cc4bf9c280404baaba7908fe (diff)
downloadgitlab-ce-0d09b5fefc635120cf6e4234a401028f815fb326.tar.gz
Fix builds view count indicator
Diffstat (limited to 'app/views/projects/builds/index.html.haml')
-rw-r--r--app/views/projects/builds/index.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml
index b04784025f1..4d8ca16d98a 100644
--- a/app/views/projects/builds/index.html.haml
+++ b/app/views/projects/builds/index.html.haml
@@ -12,17 +12,17 @@
%li{class: ('active' if @scope.nil?)}
= link_to project_builds_path(@project) do
Running
- %span.badge.js-running-count= @all_builds.running_or_pending.size
+ %span.badge.js-running-count= @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.size
+ %span.badge.js-running-count= @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.size
+ %span.badge.js-totalbuilds-count= @all_builds.count(:id)
.gray-content-block
List of #{@scope || 'running'} builds from this project