File: _tabs.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (32 lines) | stat: -rw-r--r-- 1,870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- show_project_name = local_assigns.fetch(:show_project_name, false)

.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
  %button.fade-left{ type: 'button', title: _('Scroll left'), 'aria-label': _('Scroll left') }
    = sprite_icon('chevron-lg-left', size: 12)
  %button.fade-right{ type: 'button', title: _('Scroll right'), 'aria-label': _('Scroll right') }
    = sprite_icon('chevron-lg-right', size: 12)
  = gl_tabs_nav({ class: %w[scrolling-tabs js-milestone-tabs] }) do
    = gl_tab_link_to '#tab-issues', item_active: true, data: { endpoint: milestone_tab_path(milestone, 'issues', show_project_name: show_project_name) } do
      = _('Issues')
      = gl_tab_counter_badge milestone.issues_visible_to_user(current_user).size
    - if milestone.merge_requests_enabled?
      = gl_tab_link_to '#tab-merge-requests', data: { endpoint: milestone_tab_path(milestone, 'merge_requests', show_project_name: show_project_name) } do
        = _('Merge requests')
        = gl_tab_counter_badge milestone.merge_requests_visible_to_user(current_user).size
    = gl_tab_link_to '#tab-participants', data: { endpoint: milestone_tab_path(milestone, 'participants') } do
      = _('Participants')
      = gl_tab_counter_badge milestone.issue_participants_visible_by_user(current_user).count
    = gl_tab_link_to '#tab-labels', data: { endpoint: milestone_tab_path(milestone, 'labels') } do
      = _('Labels')
      = gl_tab_counter_badge milestone.issue_labels_visible_by_user(current_user).count

.tab-content.milestone-content
  .tab-pane.active#tab-issues
    = render "shared/milestones/tab_loading"
  - if milestone.merge_requests_enabled?
    .tab-pane#tab-merge-requests
      = render "shared/milestones/tab_loading"
  .tab-pane#tab-participants
    = render "shared/milestones/tab_loading"
  .tab-pane#tab-labels
    = render "shared/milestones/tab_loading"