2017-03-28 10:56:08 -04:00
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
|
2017-03-24 05:49:10 -04:00
|
|
|
.fade-left= icon('angle-left')
|
|
|
|
.fade-right= icon('angle-right')
|
|
|
|
%ul.nav-links.scrolling-tabs
|
|
|
|
- if milestone.is_a?(GlobalMilestone) || can?(current_user, :read_issue, @project)
|
|
|
|
%li.active
|
|
|
|
= link_to '#tab-issues', 'data-toggle' => 'tab', 'data-show' => '.tab-issues-buttons' do
|
|
|
|
Issues
|
|
|
|
%span.badge= milestone.issues_visible_to_user(current_user).size
|
|
|
|
%li
|
|
|
|
= link_to '#tab-merge-requests', 'data-toggle' => 'tab', 'data-show' => '.tab-merge-requests-buttons' do
|
|
|
|
Merge Requests
|
|
|
|
%span.badge= milestone.merge_requests.size
|
|
|
|
- else
|
|
|
|
%li.active
|
|
|
|
= link_to '#tab-merge-requests', 'data-toggle' => 'tab', 'data-show' => '.tab-merge-requests-buttons' do
|
|
|
|
Merge Requests
|
|
|
|
%span.badge= milestone.merge_requests.size
|
2017-02-08 15:57:23 -05:00
|
|
|
%li
|
2017-03-24 05:49:10 -04:00
|
|
|
= link_to '#tab-participants', 'data-toggle' => 'tab' do
|
|
|
|
Participants
|
|
|
|
%span.badge= milestone.participants.count
|
|
|
|
%li
|
|
|
|
= link_to '#tab-labels', 'data-toggle' => 'tab' do
|
|
|
|
Labels
|
|
|
|
%span.badge= milestone.labels.count
|
2016-03-06 23:07:19 -05:00
|
|
|
|
|
|
|
- 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
|
2017-02-08 15:57:23 -05:00
|
|
|
- if milestone.is_a?(GlobalMilestone) || can?(current_user, :read_issue, @project)
|
|
|
|
.tab-pane.active#tab-issues
|
|
|
|
= render 'shared/milestones/issues_tab', issues: milestone.issues_visible_to_user(current_user).include_associations, show_project_name: show_project_name, show_full_project_name: show_full_project_name
|
|
|
|
.tab-pane#tab-merge-requests
|
|
|
|
= render 'shared/milestones/merge_requests_tab', merge_requests: milestone.merge_requests, show_project_name: show_project_name, show_full_project_name: show_full_project_name
|
|
|
|
- else
|
|
|
|
.tab-pane.active#tab-merge-requests
|
|
|
|
= render 'shared/milestones/merge_requests_tab', merge_requests: milestone.merge_requests, show_project_name: show_project_name, show_full_project_name: show_full_project_name
|
2016-03-06 23:07:19 -05:00
|
|
|
.tab-pane#tab-participants
|
|
|
|
= render 'shared/milestones/participants_tab', users: milestone.participants
|
|
|
|
.tab-pane#tab-labels
|
|
|
|
= render 'shared/milestones/labels_tab', labels: milestone.labels
|