debian-mirror-gitlab/app/views/shared/milestones/_tabs.html.haml

31 lines
1.7 KiB
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
- show_project_name = local_assigns.fetch(:show_project_name, false)
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)
2022-01-26 12:08:38 +05:30
= 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
2020-01-01 13:55:28 +05:30
- if milestone.merge_requests_enabled?
2022-01-26 12:08:38 +05:30
= 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
2016-06-02 11:05:42 +05:30
.tab-content.milestone-content
2021-01-03 14:25:43 +05:30
.tab-pane.active#tab-issues
= render "shared/milestones/tab_loading"
2020-01-01 13:55:28 +05:30
- if milestone.merge_requests_enabled?
.tab-pane#tab-merge-requests
= 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
= 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
= render "shared/milestones/tab_loading"