2016-06-10 09:17:28 -04:00
|
|
|
- @no_container = true
|
2016-09-06 08:49:49 -04:00
|
|
|
- @bulk_edit = can?(current_user, :admin_merge_request, @project)
|
|
|
|
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Merge Requests"
|
2015-07-08 17:21:35 -04:00
|
|
|
= render 'projects/last_push'
|
2016-02-05 05:35:55 -05:00
|
|
|
|
2017-02-15 17:13:53 -05:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_bundle_tag('filtered_search')
|
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-10 09:17:28 -04:00
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
|
|
|
.nav-controls
|
|
|
|
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
|
|
|
|
- if merge_project
|
|
|
|
= link_to new_namespace_project_merge_request_path(merge_project.namespace, merge_project), class: "btn btn-new", title: "New Merge Request" do
|
|
|
|
New Merge Request
|
2016-02-05 05:35:55 -05:00
|
|
|
|
2017-02-15 17:13:53 -05:00
|
|
|
= render 'shared/issuable/search_bar', type: :merge_requests
|
2016-02-05 05:35:55 -05:00
|
|
|
|
2016-06-10 09:17:28 -04:00
|
|
|
.merge-requests-holder
|
|
|
|
= render 'merge_requests'
|