18 lines
608 B
Text
18 lines
608 B
Text
%ul.nav-links
|
|
%li{ class: active_when(scope.nil?) }>
|
|
= link_to schedule_path_proc.call(nil) do
|
|
All
|
|
%span.badge.js-totalbuilds-count
|
|
= number_with_delimiter(all_schedules.count(:id))
|
|
|
|
%li{ class: active_when(scope == 'active') }>
|
|
= link_to schedule_path_proc.call('active') do
|
|
Active
|
|
%span.badge
|
|
= number_with_delimiter(all_schedules.active.count(:id))
|
|
|
|
%li{ class: active_when(scope == 'inactive') }>
|
|
= link_to schedule_path_proc.call('inactive') do
|
|
Inactive
|
|
%span.badge
|
|
= number_with_delimiter(all_schedules.inactive.count(:id))
|