2016-06-02 11:05:42 +05:30
|
|
|
= form_tag search_path, method: :get, class: 'js-search-form' do |f|
|
2015-09-11 14:41:01 +05:30
|
|
|
= hidden_field_tag :snippets, params[:snippets]
|
|
|
|
= hidden_field_tag :scope, params[:scope]
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.search-holder
|
|
|
|
.search-field-holder
|
2019-03-02 22:35:43 +05:30
|
|
|
= 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-06-02 11:05:42 +05:30
|
|
|
= 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
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Clear search")
|
2015-09-11 14:41:01 +05:30
|
|
|
- unless params[:snippets].eql? 'true'
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'filter'
|
2019-03-02 22:35:43 +05:30
|
|
|
= button_tag _("Search"), class: "btn btn-success btn-search"
|