gitlab-org--gitlab-foss/app/views/layouts/_search.html.haml

11 lines
542 B
Text
Raw Normal View History

2012-10-11 17:41:49 -04:00
.search
= form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
2012-10-11 17:41:49 -04:00
= text_field_tag "search", nil, placeholder: "Search", class: "search-input"
2013-01-25 03:07:21 -05:00
= hidden_field_tag :group_id, @group.try(:id)
- if @project && @project.persisted?
= hidden_field_tag :project_id, @project.id
= hidden_field_tag :search_code, true
2013-05-09 04:27:14 -04:00
= hidden_field_tag :repository_ref, @ref
= submit_tag 'Go' if ENV['RAILS_ENV'] == 'test'
.search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }