BigW Consortium Gitlab

_tabs.html.haml 780 Bytes
Newer Older
1
%ul.nav-links
Semyon Pupkov committed
2
  %li{ class: active_when(scope.nil?) }>
3
    = link_to build_path_proc.call(nil) do
4 5
      All
      %span.badge.js-totalbuilds-count
6
        = limited_counter_with_delimiter(all_builds)
7

Semyon Pupkov committed
8
  %li{ class: active_when(scope == 'pending') }>
9
    = link_to build_path_proc.call('pending') do
10 11
      Pending
      %span.badge
12
        = limited_counter_with_delimiter(all_builds.pending)
13

Semyon Pupkov committed
14
  %li{ class: active_when(scope == 'running') }>
15
    = link_to build_path_proc.call('running') do
16 17
      Running
      %span.badge
18
        = limited_counter_with_delimiter(all_builds.running)
19

Semyon Pupkov committed
20
  %li{ class: active_when(scope == 'finished') }>
21
    = link_to build_path_proc.call('finished') do
22 23
      Finished
      %span.badge
24
        = limited_counter_with_delimiter(all_builds.finished)