Skip to content
Snippets Groups Projects
Commit 2d62a719 authored by Andriy Dyadyura's avatar Andriy Dyadyura
Browse files

new tabs for builds

parent 55613766
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
 
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -11,6 +11,12 @@
%ul.center-top-menu
%li{class: ('active' if @scope.nil?)}
= link_to project_builds_path(@project) do
All
%span.badge.js-totalbuilds-count
= number_with_delimiter(@all_builds.count(:id))
%li{class: ('active' if @scope == 'running')}
= link_to project_builds_path(@project, scope: :running) do
Running
%span.badge.js-running-count
= number_with_delimiter(@all_builds.running_or_pending.count(:id))
Loading
Loading
@@ -21,12 +27,6 @@
%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
= number_with_delimiter(@all_builds.count(:id))
.gray-content-block
#{(@scope || 'running').capitalize} builds from this project
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment