2016-04-15 10:12:04 -04:00
|
|
|
= form_tag search_path, method: :get, class: 'js-search-form' do |f|
|
2015-04-28 15:04:19 -04:00
|
|
|
= hidden_field_tag :snippets, params[:snippets]
|
|
|
|
= hidden_field_tag :scope, params[:scope]
|
2015-08-26 18:50:17 -04:00
|
|
|
|
2016-04-15 09:13:21 -04:00
|
|
|
.search-holder
|
2016-04-15 10:32:30 -04:00
|
|
|
.search-field-holder
|
2018-06-14 00:11:10 -04:00
|
|
|
= search_field_tag :search, params[:search], placeholder: _("Search for projects, issues, etc."), class: "form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false
|
2016-04-15 10:55:31 -04:00
|
|
|
= icon("search", class: "search-icon")
|
|
|
|
%button.search-clear.js-search-clear{ class: ("hidden" if !params[:search].present?), type: "button", tabindex: "-1" }
|
|
|
|
= icon("times-circle")
|
|
|
|
%span.sr-only
|
2018-06-14 00:11:10 -04:00
|
|
|
= _("Clear search")
|
2015-04-28 15:04:19 -04:00
|
|
|
- unless params[:snippets].eql? 'true'
|
2017-08-22 11:10:49 -04:00
|
|
|
= render 'filter'
|
2018-06-14 00:11:10 -04:00
|
|
|
= button_tag _("Search"), class: "btn btn-success btn-search"
|