2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2017-09-10 17:25:29 +05:30
|
|
|
- @can_bulk_update = can?(current_user, :admin_merge_request, @project)
|
|
|
|
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
|
|
|
|
- new_merge_request_path = project_new_merge_request_path(merge_project) if merge_project
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Merge Requests"
|
2017-09-10 17:25:29 +05:30
|
|
|
- unless @project.issues_enabled?
|
2017-08-17 22:00:37 +05:30
|
|
|
= content_for :sub_nav do
|
|
|
|
= render "projects/merge_requests/head"
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= webpack_bundle_tag 'common_vue'
|
|
|
|
= webpack_bundle_tag 'filtered_search'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if show_new_nav?
|
|
|
|
- content_for :breadcrumbs_extra do
|
|
|
|
= render "projects/merge_requests/nav_btns", merge_project: merge_project, new_merge_request_path: new_merge_request_path
|
|
|
|
|
|
|
|
= render 'projects/last_push'
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- if @project.merge_requests.exists?
|
|
|
|
%div{ class: container_class }
|
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
2017-09-10 17:25:29 +05:30
|
|
|
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
|
|
|
|
= 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
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
= render 'shared/issuable/bulk_update_sidebar', type: :merge_requests
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.merge-requests-holder
|
|
|
|
= render 'merge_requests'
|
|
|
|
- else
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/empty_states/merge_requests', button_path: new_merge_request_path
|