BigW Consortium Gitlab

_tabs.html.haml 788 Bytes
Newer Older
1
%ul.nav-links
Katarzyna Kobierska committed
2
  %li{ class: ('active' if 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))

Katarzyna Kobierska committed
8
  %li{ class: ('active' if 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))

Katarzyna Kobierska committed
14
  %li{ class: ('active' if 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))

Katarzyna Kobierska committed
20
  %li{ class: ('active' if 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))