2017-09-10 17:25:29 +05:30
|
|
|
- @can_bulk_update = can?(current_user, :admin_merge_request, @project)
|
2018-05-09 12:01:36 +05:30
|
|
|
- merge_project = merge_request_source_project_for_project(@project)
|
2017-09-10 17:25:29 +05:30
|
|
|
- new_merge_request_path = project_new_merge_request_path(merge_project) if merge_project
|
2021-03-11 19:13:27 +05:30
|
|
|
- issuable_type = 'merge_request'
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
- page_title _("Merge requests")
|
2018-03-17 18:26:18 +05:30
|
|
|
- new_merge_request_email = @project.new_issuable_address(current_user, 'merge_request')
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2021-11-11 11:23:49 +05:30
|
|
|
= content_for :meta_tags do
|
|
|
|
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{@project.name} merge requests")
|
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
= render 'projects/last_push'
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- if @project.merge_requests.exists?
|
2019-12-04 20:38:33 +05:30
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
|
|
|
.nav-controls
|
|
|
|
= render "projects/merge_requests/nav_btns", merge_project: merge_project, new_merge_request_path: new_merge_request_path
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render 'shared/issuable/bulk_update_sidebar', type: :merge_requests
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
.merge-requests-holder
|
2021-11-11 11:23:49 +05:30
|
|
|
= render 'merge_requests', new_merge_request_path: new_merge_request_path
|
2019-12-04 20:38:33 +05:30
|
|
|
- if new_merge_request_email
|
2021-06-08 01:23:25 +05:30
|
|
|
.gl-text-center.gl-pt-5.gl-pb-7
|
2022-01-26 12:08:38 +05:30
|
|
|
.js-issuable-by-email{ data: { initial_email: new_merge_request_email, issuable_type: issuable_type, emails_help_page_path: help_page_path('development/emails', anchor: 'email-namespace'), quick_actions_help_path: help_page_path('user/project/quick_actions'), markdown_help_path: help_page_path('user/markdown'), reset_path: new_issuable_address_project_path(@project, issuable_type: issuable_type) } }
|
2017-08-17 22:00:37 +05:30
|
|
|
- else
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/empty_states/merge_requests', button_path: new_merge_request_path
|