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: 498e9cc33ce47a684b969fa460f4e5e6146686f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- count_badge_classes = 'badge badge-muted badge-pill gl-badge gl-tab-counter-badge sm gl-display-none gl-sm-display-inline-flex'

= gl_tabs_nav( {class: 'gl-border-b-0 gl-flex-grow-1', data: { testid: 'jobs-tabs' } } ) do
  = gl_tab_link_to build_path_proc.call(nil), { item_active: scope.nil? } do
    = _('All')
    %span{ class: count_badge_classes }
      = limited_counter_with_delimiter(all_builds)
  = gl_tab_link_to build_path_proc.call('pending'), { item_active: scope == 'pending' } do
    = _('Pending')
    %span{ class: count_badge_classes }
      = limited_counter_with_delimiter(all_builds.pending)
  = gl_tab_link_to build_path_proc.call('running'), { item_active: scope == 'running' } do
    = _('Running')
    %span{ class: count_badge_classes }
      = limited_counter_with_delimiter(all_builds.running)
  = gl_tab_link_to build_path_proc.call('finished'), { item_active: scope == 'finished' } do
    = _('Finished')
    %span{ class: count_badge_classes }
      = limited_counter_with_delimiter(all_builds.finished)