2019-08-08 06:25:20 +00:00
|
|
|
- @can_bulk_update = can?(current_user, :admin_merge_request, @group) && @group.feature_available?(:group_bulk_edit)
|
2019-07-23 14:39:18 +00:00
|
|
|
|
2021-04-05 21:09:19 +00:00
|
|
|
- page_title _("Merge requests")
|
2012-10-02 17:42:15 +00:00
|
|
|
|
2021-03-29 21:09:08 +00:00
|
|
|
- if @merge_requests&.size == 0
|
2017-04-05 12:43:03 +00:00
|
|
|
= render 'shared/empty_states/merge_requests', project_select_button: true
|
|
|
|
- else
|
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
|
|
|
- if current_user
|
2017-09-06 08:38:48 +00:00
|
|
|
.nav-controls
|
2019-07-23 14:39:18 +00:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/bulk_update_button', type: :merge_requests
|
|
|
|
|
2019-01-16 12:09:29 +00:00
|
|
|
= 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-02 13:02:12 +00:00
|
|
|
|
2017-08-19 14:12:05 +00:00
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2015-12-02 13:02:12 +00:00
|
|
|
|
2019-07-23 14:39:18 +00:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :merge_requests
|
|
|
|
|
2017-06-22 18:13:22 +00:00
|
|
|
= render 'shared/merge_requests'
|