2020-09-18 18:10:26 +00:00
|
|
|
- show_project_name = local_assigns.fetch(:show_project_name, false)
|
|
|
|
|
2017-03-28 14:56:08 +00:00
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
|
2020-06-25 12:09:00 +00:00
|
|
|
.fade-left= sprite_icon('chevron-lg-left', size: 12)
|
|
|
|
.fade-right= sprite_icon('chevron-lg-right', size: 12)
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav-links.scrolling-tabs.js-milestone-tabs.nav.nav-tabs
|
2018-05-31 14:23:49 +00:00
|
|
|
%li.nav-item
|
2020-09-18 18:10:26 +00:00
|
|
|
= link_to '#tab-issues', class: 'nav-link active', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'issues', show_project_name: show_project_name) } do
|
2019-11-07 21:06:14 +00:00
|
|
|
= _('Issues')
|
|
|
|
%span.badge.badge-pill= milestone.issues_visible_to_user(current_user).size
|
2019-12-03 18:06:49 +00:00
|
|
|
- if milestone.merge_requests_enabled?
|
|
|
|
%li.nav-item
|
2020-09-18 18:10:26 +00:00
|
|
|
= link_to '#tab-merge-requests', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'merge_requests', show_project_name: show_project_name) } do
|
2019-12-03 18:06:49 +00:00
|
|
|
= _('Merge Requests')
|
|
|
|
%span.badge.badge-pill= milestone.merge_requests_visible_to_user(current_user).size
|
2019-11-07 21:06:14 +00:00
|
|
|
%li.nav-item
|
|
|
|
= link_to '#tab-participants', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'participants') } do
|
|
|
|
= _('Participants')
|
2019-01-17 19:41:53 +00:00
|
|
|
%span.badge.badge-pill= milestone.issue_participants_visible_by_user(current_user).count
|
2018-05-31 14:23:49 +00:00
|
|
|
%li.nav-item
|
2019-11-07 21:06:14 +00:00
|
|
|
= link_to '#tab-labels', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'labels') } do
|
|
|
|
= _('Labels')
|
2019-01-17 19:41:53 +00:00
|
|
|
%span.badge.badge-pill= milestone.issue_labels_visible_by_user(current_user).count
|
2016-03-07 04:07:19 +00:00
|
|
|
|
|
|
|
.tab-content.milestone-content
|
2020-09-18 18:10:26 +00:00
|
|
|
.tab-pane.active#tab-issues
|
|
|
|
= render "shared/milestones/tab_loading"
|
2019-12-03 18:06:49 +00:00
|
|
|
- if milestone.merge_requests_enabled?
|
|
|
|
.tab-pane#tab-merge-requests
|
|
|
|
= render "shared/milestones/tab_loading"
|
2016-03-07 04:07:19 +00:00
|
|
|
.tab-pane#tab-participants
|
2017-04-25 15:06:17 +00:00
|
|
|
= render "shared/milestones/tab_loading"
|
2016-03-07 04:07:19 +00:00
|
|
|
.tab-pane#tab-labels
|
2017-04-25 15:06:17 +00:00
|
|
|
= render "shared/milestones/tab_loading"
|