2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Merge Requests"
|
2015-09-25 12:07:36 +05:30
|
|
|
= render "header_title"
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= render 'projects/last_push'
|
2015-09-25 12:07:36 +05:30
|
|
|
.project-issuable-filter
|
|
|
|
.controls
|
2015-09-11 14:41:01 +05:30
|
|
|
= render 'shared/issuable/search_form', path: namespace_project_merge_requests_path(@project.namespace, @project)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
|
|
|
|
- if merge_project
|
2015-09-11 14:41:01 +05:30
|
|
|
.pull-left.hidden-xs
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to new_namespace_project_merge_request_path(merge_project.namespace, merge_project), class: "btn btn-new", title: "New Merge Request" do
|
2015-09-11 14:41:01 +05:30
|
|
|
%i.fa.fa-plus
|
|
|
|
New Merge Request
|
|
|
|
= render 'shared/issuable/filter', type: :merge_requests
|
2015-04-26 12:48:37 +05:30
|
|
|
.merge-requests-holder
|
|
|
|
= render 'merge_requests'
|