2019-10-12 21:52:04 +05:30
|
|
|
- @can_bulk_update = can?(current_user, :admin_merge_request, @group) && @group.feature_available?(:group_bulk_edit)
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
- page_title _("Merge requests")
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
- if @merge_requests&.size == 0
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/empty_states/merge_requests', project_select_button: true
|
|
|
|
- else
|
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
|
|
|
- if current_user
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-controls
|
2019-10-12 21:52:04 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/bulk_update_button', type: :merge_requests
|
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
= render 'shared/new_project_item_select', path: 'merge_requests/new', label: "New merge request", type: :merge_requests, with_feature_enabled: 'merge_requests', with_shared: false, include_projects_in_subgroups: true
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :merge_requests
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/merge_requests'
|