Commit 0999038b authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '230783-migrate-haml-nav-to-gltabs' into 'master'

Convert pipeline schedules page tabs to Pajamas

See merge request gitlab-org/gitlab!74002
parents 4c07426a 60ff426c
%ul.nav-links.mobile-separator.nav.nav-tabs = gl_tabs_nav({ class: 'gl-display-flex gl-flex-grow-1 gl-border-0' }) do
%li{ class: active_when(scope.nil?) }> = gl_tab_link_to schedule_path_proc.call(nil), { item_active: active_when(scope.nil?) } do
= link_to schedule_path_proc.call(nil) do = s_("PipelineSchedules|All")
= s_("PipelineSchedules|All") = gl_tab_counter_badge(number_with_delimiter(all_schedules.count(:id)), { class: 'js-totalbuilds-count' })
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm.js-totalbuilds-count
= number_with_delimiter(all_schedules.count(:id))
%li{ class: active_when(scope == 'active') }> = gl_tab_link_to schedule_path_proc.call('active'), { item_active: active_when(scope == 'active') } do
= link_to schedule_path_proc.call('active') do = s_("PipelineSchedules|Active")
= s_("PipelineSchedules|Active") = gl_tab_counter_badge(number_with_delimiter(all_schedules.active.count(:id)))
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
= number_with_delimiter(all_schedules.active.count(:id))
%li{ class: active_when(scope == 'inactive') }> = gl_tab_link_to schedule_path_proc.call('inactive'), { item_active: active_when(scope == 'inactive') } do
= link_to schedule_path_proc.call('inactive') do = s_("PipelineSchedules|Inactive")
= s_("PipelineSchedules|Inactive") = gl_tab_counter_badge(number_with_delimiter(all_schedules.inactive.count(:id)))
%span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
= number_with_delimiter(all_schedules.inactive.count(:id))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment