2016-09-07 09:27:48 -04:00
|
|
|
%ul.nav-links
|
2017-02-12 03:02:26 -05:00
|
|
|
%li{ class: active_when(scope.nil?) }>
|
2016-09-12 03:52:56 -04:00
|
|
|
= link_to build_path_proc.call(nil) do
|
2016-09-07 09:27:48 -04:00
|
|
|
All
|
|
|
|
%span.badge.js-totalbuilds-count
|
|
|
|
= number_with_delimiter(all_builds.count(:id))
|
|
|
|
|
2017-02-12 03:02:26 -05:00
|
|
|
%li{ class: active_when(scope == 'pending') }>
|
2016-09-12 03:52:56 -04:00
|
|
|
= link_to build_path_proc.call('pending') do
|
2016-09-07 09:27:48 -04:00
|
|
|
Pending
|
|
|
|
%span.badge
|
|
|
|
= number_with_delimiter(all_builds.pending.count(:id))
|
|
|
|
|
2017-02-12 03:02:26 -05:00
|
|
|
%li{ class: active_when(scope == 'running') }>
|
2016-09-12 03:52:56 -04:00
|
|
|
= link_to build_path_proc.call('running') do
|
2016-09-07 09:27:48 -04:00
|
|
|
Running
|
|
|
|
%span.badge
|
|
|
|
= number_with_delimiter(all_builds.running.count(:id))
|
|
|
|
|
2017-02-12 03:02:26 -05:00
|
|
|
%li{ class: active_when(scope == 'finished') }>
|
2016-09-12 03:52:56 -04:00
|
|
|
= link_to build_path_proc.call('finished') do
|
2016-09-07 09:27:48 -04:00
|
|
|
Finished
|
|
|
|
%span.badge
|
|
|
|
= number_with_delimiter(all_builds.finished.count(:id))
|