2022-01-26 12:08:38 +05:30
|
|
|
- count_badge_classes = 'gl-display-none gl-sm-display-inline-flex'
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
= gl_tabs_nav({class: 'scrolling-tabs nav-links gl-display-flex gl-flex-grow-1 gl-w-full nav gl-border-b-0', data: { testid: 'jobs-tabs' } }) do
|
2021-11-18 22:05:49 +05:30
|
|
|
= gl_tab_link_to build_path_proc.call(nil), { item_active: scope.nil? } do
|
|
|
|
= _('All')
|
2022-01-26 12:08:38 +05:30
|
|
|
= gl_tab_counter_badge(limited_counter_with_delimiter(all_builds), { class: count_badge_classes })
|
2021-11-18 22:05:49 +05:30
|
|
|
= gl_tab_link_to build_path_proc.call('pending'), { item_active: scope == 'pending' } do
|
|
|
|
= _('Pending')
|
2022-01-26 12:08:38 +05:30
|
|
|
= gl_tab_counter_badge(limited_counter_with_delimiter(all_builds.pending), { class: count_badge_classes })
|
2021-11-18 22:05:49 +05:30
|
|
|
= gl_tab_link_to build_path_proc.call('running'), { item_active: scope == 'running' } do
|
|
|
|
= _('Running')
|
2022-01-26 12:08:38 +05:30
|
|
|
= gl_tab_counter_badge(limited_counter_with_delimiter(all_builds.running), { class: count_badge_classes })
|
2021-11-18 22:05:49 +05:30
|
|
|
= gl_tab_link_to build_path_proc.call('finished'), { item_active: scope == 'finished' } do
|
|
|
|
= _('Finished')
|
2022-01-26 12:08:38 +05:30
|
|
|
= gl_tab_counter_badge(limited_counter_with_delimiter(all_builds.finished), { class: count_badge_classes })
|