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

_tabs.html.haml « pipeline_schedules « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f69041e1eb19d288eab70ba96b072a298afc31af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%ul.nav-links.mobile-separator.nav.nav-tabs
  %li{ class: active_when(scope.nil?) }>
    = link_to schedule_path_proc.call(nil) do
      = s_("PipelineSchedules|All")
      %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm.js-totalbuilds-count
        = number_with_delimiter(all_schedules.count(:id))

  %li{ class: active_when(scope == 'active') }>
    = link_to schedule_path_proc.call('active') do
      = s_("PipelineSchedules|Active")
      %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
        = number_with_delimiter(all_schedules.active.count(:id))

  %li{ class: active_when(scope == 'inactive') }>
    = link_to schedule_path_proc.call('inactive') do
      = s_("PipelineSchedules|Inactive")
      %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
        = number_with_delimiter(all_schedules.inactive.count(:id))