80b2f3fb86
It is same search like we have at issues page. It allows to quickly filter merge requests based on title or desription. I copy-pasted some js code from Issues.js. In future search (filtering) logic should be refactoed into one class for merge requests and issues
11 lines
495 B
Text
11 lines
495 B
Text
.append-bottom-10
|
|
.pull-right
|
|
= render 'shared/issuable_search_form', path: namespace_project_merge_requests_path(@project.namespace, @project)
|
|
|
|
- if can? current_user, :write_merge_request, @project
|
|
= link_to new_namespace_project_merge_request_path(@project.namespace, @project), class: "btn btn-new pull-left", title: "New Merge Request" do
|
|
%i.fa.fa-plus
|
|
New Merge Request
|
|
= render 'shared/issuable_filter'
|
|
.merge-requests-holder
|
|
= render 'merge_requests'
|