BigW Consortium Gitlab

_search.html.haml 552 Bytes
Newer Older
1
.search
2
  = form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
3
    = text_field_tag "search", nil, placeholder: search_placeholder, class: "search-input"
4
    = hidden_field_tag :group_id, @group.try(:id)
5 6 7
    - if @project && @project.persisted?
      = hidden_field_tag :project_id, @project.id
      = hidden_field_tag :search_code, true
8 9 10
    = hidden_field_tag :repository_ref, @ref
    = submit_tag 'Go' if ENV['RAILS_ENV'] == 'test'
    .search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }