diff options
Diffstat (limited to 'app/views/admin/builds/index.html.haml')
-rw-r--r-- | app/views/admin/builds/index.html.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin/builds/index.html.haml b/app/views/admin/builds/index.html.haml index 55da06a7fe9..672b23bbd1c 100644 --- a/app/views/admin/builds/index.html.haml +++ b/app/views/admin/builds/index.html.haml @@ -5,8 +5,13 @@ = link_to 'Cancel all', cancel_all_admin_builds_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post %ul.center-top-menu - %li{class: ('active' if @scope.nil?)} + %li{class: ('active' if @scope == 'all')} = link_to admin_builds_path do + All + %span.badge.js-totalbuilds-count= @all_builds.count(:id) + + %li{class: ('active' if @scope.nil?)} + = link_to admin_builds_path(scope: :running) do Running %span.badge.js-running-count= @all_builds.running_or_pending.count(:id) @@ -15,11 +20,6 @@ Finished %span.badge.js-running-count= @all_builds.finished.count(:id) - %li{class: ('active' if @scope == 'all')} - = link_to admin_builds_path(scope: :all) do - All - %span.badge.js-totalbuilds-count= @all_builds.count(:id) - .gray-content-block #{(@scope || 'running').capitalize} builds |