2019-08-08 02:25:20 -04:00
|
|
|
- @can_bulk_update = can?(current_user, :admin_merge_request, @group) && @group.feature_available?(:group_bulk_edit)
|
2019-07-23 10:39:18 -04:00
|
|
|
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Merge Requests"
|
2012-10-02 13:42:15 -04:00
|
|
|
|
2018-02-23 07:10:57 -05:00
|
|
|
- if group_merge_requests_count(state: 'all').zero?
|
2017-04-05 08:43:03 -04: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 04:38:48 -04:00
|
|
|
.nav-controls
|
2019-07-23 10:39:18 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/bulk_update_button', type: :merge_requests
|
|
|
|
|
2019-01-16 07:09:29 -05: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 08:02:12 -05:00
|
|
|
|
2017-08-19 10:12:05 -04:00
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2015-12-02 08:02:12 -05:00
|
|
|
|
2019-07-23 10:39:18 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
= render_if_exists 'shared/issuable/group_bulk_update_sidebar', group: @group, type: :merge_requests
|
|
|
|
|
2017-06-22 14:13:22 -04:00
|
|
|
= render 'shared/merge_requests'
|