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
9 lines
636 B
Text
9 lines
636 B
Text
= form_tag(path, method: :get, id: "issue_search_form", class: 'pull-left issue-search-form') do
|
|
.append-right-10.hidden-xs.hidden-sm
|
|
= search_field_tag :issue_search, params[:issue_search], { placeholder: 'Filter by title or description', class: 'form-control issue_search search-text-input input-mn-300' }
|
|
= hidden_field_tag :state, params['state']
|
|
= hidden_field_tag :scope, params['scope']
|
|
= hidden_field_tag :assignee_id, params['assignee_id']
|
|
= hidden_field_tag :author_id, params['author_id']
|
|
= hidden_field_tag :milestone_id, params['milestone_id']
|
|
= hidden_field_tag :label_id, params['label_id']
|