Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_tabs.html.haml « builds « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3baa956b910d818b3c887e2558fa579cf92bdf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%ul.nav-links
  %li{ class: active_when(scope.nil?) }>
    = link_to build_path_proc.call(nil) do
      All
      %span.badge.js-totalbuilds-count
        = number_with_delimiter(all_builds.count(:id))

  %li{ class: active_when(scope == 'pending') }>
    = link_to build_path_proc.call('pending') do
      Pending
      %span.badge
        = number_with_delimiter(all_builds.pending.count(:id))

  %li{ class: active_when(scope == 'running') }>
    = link_to build_path_proc.call('running') do
      Running
      %span.badge
        = number_with_delimiter(all_builds.running.count(:id))

  %li{ class: active_when(scope == 'finished') }>
    = link_to build_path_proc.call('finished') do
      Finished
      %span.badge
        = number_with_delimiter(all_builds.finished.count(:id))