2012-10-11 21:41:49 +00:00
|
|
|
.search
|
2012-11-20 21:05:15 +00:00
|
|
|
= form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
|
2013-08-10 16:12:25 +00:00
|
|
|
= text_field_tag "search", nil, placeholder: search_placeholder, class: "search-input"
|
2013-01-25 08:07:21 +00:00
|
|
|
= hidden_field_tag :group_id, @group.try(:id)
|
2013-05-14 17:11:48 +00:00
|
|
|
- if @project && @project.persisted?
|
|
|
|
= hidden_field_tag :project_id, @project.id
|
|
|
|
= hidden_field_tag :search_code, true
|
2013-05-09 08:27:14 +00: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 }
|