debian-mirror-gitlab/app/views/shared/builds/_tabs.html.haml

25 lines
854 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?) }>
2016-09-29 09:46:39 +05:30
= link_to build_path_proc.call(nil) do
All
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill.js-totalbuilds-count
2018-03-17 18:26:18 +05:30
= limited_counter_with_delimiter(all_builds)
2016-09-29 09:46:39 +05:30
2017-08-17 22:00:37 +05:30
%li{ class: active_when(scope == 'pending') }>
2016-09-29 09:46:39 +05:30
= link_to build_path_proc.call('pending') do
Pending
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2018-03-17 18:26:18 +05:30
= limited_counter_with_delimiter(all_builds.pending)
2016-09-29 09:46:39 +05:30
2017-08-17 22:00:37 +05:30
%li{ class: active_when(scope == 'running') }>
2016-09-29 09:46:39 +05:30
= link_to build_path_proc.call('running') do
Running
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2018-03-17 18:26:18 +05:30
= limited_counter_with_delimiter(all_builds.running)
2016-09-29 09:46:39 +05:30
2017-08-17 22:00:37 +05:30
%li{ class: active_when(scope == 'finished') }>
2016-09-29 09:46:39 +05:30
= link_to build_path_proc.call('finished') do
Finished
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2018-03-17 18:26:18 +05:30
= limited_counter_with_delimiter(all_builds.finished)