2017-08-17 22:00:37 +05:30
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
|
2020-07-28 23:09:34 +05:30
|
|
|
.fade-left= sprite_icon('chevron-lg-left', size: 12)
|
|
|
|
.fade-right= sprite_icon('chevron-lg-right', size: 12)
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.nav-links.scrolling-tabs.js-milestone-tabs.nav.nav-tabs
|
|
|
|
%li.nav-item
|
2019-12-26 22:10:19 +05:30
|
|
|
= link_to '#tab-issues', class: 'nav-link active', data: { toggle: 'tab', show: '.tab-issues-buttons' } do
|
|
|
|
= _('Issues')
|
|
|
|
%span.badge.badge-pill= milestone.issues_visible_to_user(current_user).size
|
2020-01-01 13:55:28 +05:30
|
|
|
- if milestone.merge_requests_enabled?
|
|
|
|
%li.nav-item
|
|
|
|
= link_to '#tab-merge-requests', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'merge_requests') } do
|
|
|
|
= _('Merge Requests')
|
|
|
|
%span.badge.badge-pill= milestone.merge_requests_visible_to_user(current_user).size
|
2019-12-26 22:10:19 +05:30
|
|
|
%li.nav-item
|
|
|
|
= link_to '#tab-participants', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'participants') } do
|
|
|
|
= _('Participants')
|
2019-03-13 22:55:13 +05:30
|
|
|
%span.badge.badge-pill= milestone.issue_participants_visible_by_user(current_user).count
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
2019-12-26 22:10:19 +05:30
|
|
|
= link_to '#tab-labels', class: 'nav-link', data: { toggle: 'tab', endpoint: milestone_tab_path(milestone, 'labels') } do
|
|
|
|
= _('Labels')
|
2019-03-13 22:55:13 +05:30
|
|
|
%span.badge.badge-pill= milestone.issue_labels_visible_by_user(current_user).count
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- issues = milestone.sorted_issues(current_user)
|
2016-06-02 11:05:42 +05:30
|
|
|
- show_project_name = local_assigns.fetch(:show_project_name, false)
|
|
|
|
- show_full_project_name = local_assigns.fetch(:show_full_project_name, false)
|
|
|
|
|
|
|
|
.tab-content.milestone-content
|
2019-12-26 22:10:19 +05:30
|
|
|
.tab-pane.active#tab-issues{ data: { sort_endpoint: (sort_issues_project_milestone_path(@project, @milestone) if @project && current_user) } }
|
|
|
|
= render 'shared/milestones/issues_tab', issues: issues, show_project_name: show_project_name, show_full_project_name: show_full_project_name
|
2020-01-01 13:55:28 +05:30
|
|
|
- if milestone.merge_requests_enabled?
|
|
|
|
.tab-pane#tab-merge-requests
|
|
|
|
-# loaded async
|
|
|
|
= render "shared/milestones/tab_loading"
|
2016-06-02 11:05:42 +05:30
|
|
|
.tab-pane#tab-participants
|
2017-08-17 22:00:37 +05:30
|
|
|
-# loaded async
|
|
|
|
= render "shared/milestones/tab_loading"
|
2016-06-02 11:05:42 +05:30
|
|
|
.tab-pane#tab-labels
|
2017-08-17 22:00:37 +05:30
|
|
|
-# loaded async
|
|
|
|
= render "shared/milestones/tab_loading"
|