2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Merge Requests"
|
2016-06-16 23:09:34 +05:30
|
|
|
= render "projects/issues/head"
|
2015-09-11 14:41:01 +05:30
|
|
|
= render 'projects/last_push'
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
%div{ class: (container_class) }
|
|
|
|
.top-area
|
|
|
|
= render 'shared/issuable/nav', type: :merge_requests
|
|
|
|
.nav-controls
|
|
|
|
= render 'shared/issuable/search_form', path: namespace_project_merge_requests_path(@project.namespace, @project)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
- 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-04-02 18:10:28 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
= render 'shared/issuable/filter', type: :merge_requests
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.merge-requests-holder
|
|
|
|
= render 'merge_requests'
|