BigW Consortium Gitlab

_tabs.html.haml 788 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 6 7
      All
      %span.badge.js-totalbuilds-count
        = number_with_delimiter(all_builds.count(:id))

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

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

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