2014-01-02 07:33:15 -05:00
|
|
|
= form_tag search_path, method: :get, class: 'form-horizontal' do |f|
|
|
|
|
.search-holder.clearfix
|
|
|
|
.form-group
|
|
|
|
= label_tag :search, class: 'control-label' do
|
|
|
|
%span Looking for
|
|
|
|
.col-sm-6
|
|
|
|
= search_field_tag :search, params[:search], placeholder: "issue 143", class: "form-control search-text-input", id: "dashboard_search"
|
|
|
|
.col-sm-4
|
2014-09-26 10:57:36 -04:00
|
|
|
= button_tag 'Search', class: "btn btn-create"
|
2014-01-02 07:33:15 -05:00
|
|
|
.form-group
|
|
|
|
.col-sm-2
|
2014-09-05 13:30:55 -04:00
|
|
|
- unless params[:snippets].eql? 'true'
|
|
|
|
.col-sm-10
|
|
|
|
= render 'filter', f: f
|
2013-05-14 13:11:48 -04:00
|
|
|
= hidden_field_tag :project_id, params[:project_id]
|
|
|
|
= hidden_field_tag :group_id, params[:group_id]
|
2014-08-29 15:22:45 -04:00
|
|
|
= hidden_field_tag :snippets, params[:snippets]
|
2014-08-27 04:55:42 -04:00
|
|
|
= hidden_field_tag :scope, params[:scope]
|
2013-05-09 04:46:32 -04:00
|
|
|
|
|
|
|
.results.prepend-top-10
|
|
|
|
- if params[:search].present?
|
2013-11-06 02:58:43 -05:00
|
|
|
= render 'search/results'
|