debian-mirror-gitlab/app/views/projects/pipeline_schedules/_tabs.html.haml

19 lines
884 B
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
%ul.nav-links.mobile-separator.nav.nav-tabs
2017-08-17 22:00:37 +05:30
%li{ class: active_when(scope.nil?) }>
= link_to schedule_path_proc.call(nil) do
2017-09-10 17:25:29 +05:30
= s_("PipelineSchedules|All")
2021-06-08 01:23:25 +05:30
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm.js-totalbuilds-count
2017-08-17 22:00:37 +05:30
= number_with_delimiter(all_schedules.count(:id))
%li{ class: active_when(scope == 'active') }>
= link_to schedule_path_proc.call('active') do
2017-09-10 17:25:29 +05:30
= s_("PipelineSchedules|Active")
2021-06-08 01:23:25 +05:30
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
2017-08-17 22:00:37 +05:30
= number_with_delimiter(all_schedules.active.count(:id))
%li{ class: active_when(scope == 'inactive') }>
= link_to schedule_path_proc.call('inactive') do
2017-09-10 17:25:29 +05:30
= s_("PipelineSchedules|Inactive")
2021-06-08 01:23:25 +05:30
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
2017-08-17 22:00:37 +05:30
= number_with_delimiter(all_schedules.inactive.count(:id))