gitlab-org--gitlab-foss/app/views/projects/pipeline_schedules/_tabs.html.haml

19 lines
749 B
Text
Raw Normal View History

2018-04-19 23:34:20 -04:00
%ul.nav-links.mobile-separator.nav.nav-tabs
%li{ class: active_when(scope.nil?) }>
= link_to schedule_path_proc.call(nil) do
= s_("PipelineSchedules|All")
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill.js-totalbuilds-count
= number_with_delimiter(all_schedules.count(:id))
%li{ class: active_when(scope == 'active') }>
= link_to schedule_path_proc.call('active') do
= s_("PipelineSchedules|Active")
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill
= number_with_delimiter(all_schedules.active.count(:id))
%li{ class: active_when(scope == 'inactive') }>
= link_to schedule_path_proc.call('inactive') do
= s_("PipelineSchedules|Inactive")
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill
= number_with_delimiter(all_schedules.inactive.count(:id))