diff --git a/app/views/admin/builds/index.html.haml b/app/views/admin/builds/index.html.haml index 0fcff566a70a949f1e5478fdbf2a22c8f8893c1e..3d77634d8fafe6b9ce72261c28845377a5599795 100644 --- a/app/views/admin/builds/index.html.haml +++ b/app/views/admin/builds/index.html.haml @@ -13,17 +13,17 @@ %li{class: ('active' if @scope == 'pending')} = link_to admin_builds_path(scope: :pending) do Pending - %span.badge.js-running-count= number_with_delimiter(@all_builds.pending.count(:id)) + %span.badge= number_with_delimiter(@all_builds.pending.count(:id)) %li{class: ('active' if @scope == 'running')} = link_to admin_builds_path(scope: :running) do Running - %span.badge.js-running-count= number_with_delimiter(@all_builds.running.count(:id)) + %span.badge= number_with_delimiter(@all_builds.running.count(:id)) %li{class: ('active' if @scope == 'finished')} = link_to admin_builds_path(scope: :finished) do Finished - %span.badge.js-running-count= number_with_delimiter(@all_builds.finished.count(:id)) + %span.badge= number_with_delimiter(@all_builds.finished.count(:id)) .nav-controls - if @all_builds.running_or_pending.any? diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml index 41f0462e4befc12da3f4f5941fec0f3f4c6d7458..2af625f69cd378e0b66786baf7f1d9d5012459c0 100644 --- a/app/views/projects/builds/index.html.haml +++ b/app/views/projects/builds/index.html.haml @@ -14,19 +14,19 @@ %li{class: ('active' if @scope == 'pending')} = link_to project_builds_path(@project, scope: :pending) do Pending - %span.badge.js-running-count + %span.badge = number_with_delimiter(@all_builds.pending.count(:id)) %li{class: ('active' if @scope == 'running')} = link_to project_builds_path(@project, scope: :running) do Running - %span.badge.js-running-count + %span.badge = number_with_delimiter(@all_builds.running.count(:id)) %li{class: ('active' if @scope == 'finished')} = link_to project_builds_path(@project, scope: :finished) do Finished - %span.badge.js-running-count + %span.badge = number_with_delimiter(@all_builds.finished.count(:id)) .nav-controls