gitlab-org--gitlab-foss/app/views/shared/builds/_tabs.html.haml

25 lines
854 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 build_path_proc.call(nil) do
All
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill.js-totalbuilds-count
= limited_counter_with_delimiter(all_builds)
%li{ class: active_when(scope == 'pending') }>
= link_to build_path_proc.call('pending') do
Pending
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill
= limited_counter_with_delimiter(all_builds.pending)
%li{ class: active_when(scope == 'running') }>
= link_to build_path_proc.call('running') do
Running
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill
= limited_counter_with_delimiter(all_builds.running)
%li{ class: active_when(scope == 'finished') }>
= link_to build_path_proc.call('finished') do
Finished
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill
= limited_counter_with_delimiter(all_builds.finished)