2019-08-02 17:59:29 -04:00
|
|
|
= form_tag search_path, method: :get, class: 'search-page-form 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]
|
2019-08-09 12:32:17 -04:00
|
|
|
= hidden_field_tag :repository_ref, params[:repository_ref]
|
2015-08-26 18:50:17 -04:00
|
|
|
|
2019-08-02 17:59:29 -04:00
|
|
|
.d-lg-flex.align-items-end
|
|
|
|
.search-field-holder.form-group.mr-lg-1.mb-lg-0
|
2019-07-24 09:31:26 -04:00
|
|
|
%label{ for: "dashboard_search" }
|
|
|
|
= _("What are you searching for?")
|
|
|
|
.position-relative
|
|
|
|
= 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
|
|
|
|
= 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
|
|
|
|
= _("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'
|
2019-07-24 09:31:26 -04:00
|
|
|
.d-flex-center.flex-column.flex-lg-row
|
2019-08-02 17:59:29 -04:00
|
|
|
= button_tag _("Search"), class: "btn btn-success btn-search form-control mt-lg-0 ml-lg-1 align-self-end"
|