2014-09-02 18:07:02 +05:30
|
|
|
= 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
|
2015-04-26 12:48:37 +05:30
|
|
|
= button_tag 'Search', class: "btn btn-create"
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-group
|
|
|
|
.col-sm-2
|
2015-04-26 12:48:37 +05:30
|
|
|
- unless params[:snippets].eql? 'true'
|
|
|
|
.col-sm-10
|
|
|
|
= render 'filter', f: f
|
2014-09-02 18:07:02 +05:30
|
|
|
= hidden_field_tag :project_id, params[:project_id]
|
|
|
|
= hidden_field_tag :group_id, params[:group_id]
|
2015-04-26 12:48:37 +05:30
|
|
|
= hidden_field_tag :snippets, params[:snippets]
|
|
|
|
= hidden_field_tag :scope, params[:scope]
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.results.prepend-top-10
|
|
|
|
- if params[:search].present?
|
|
|
|
= render 'search/results'
|