gitlab-org--gitlab-foss/app/views/search/_form.html.haml

11 lines
551 B
Text
Raw Normal View History

= form_tag search_path, method: :get, class: 'js-search-form' do |f|
= hidden_field_tag :snippets, params[:snippets]
= hidden_field_tag :scope, params[:scope]
2016-04-15 09:13:21 -04:00
.search-holder
2016-04-15 10:32:30 -04:00
.search-field-holder
= search_field_tag :search, params[:search], placeholder: "Search for projects, issues etc", class: "form-control search-text-input", id: "dashboard_search", autofocus: true, spellcheck: false
- unless params[:snippets].eql? 'true'
= render 'filter' if current_user
2016-04-15 10:32:30 -04:00
= button_tag 'Search', class: "btn btn-success btn-search"