debian-mirror-gitlab/app/views/search/_form.html.haml

15 lines
627 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
= form_tag search_path, method: :get do |f|
2015-09-11 14:41:01 +05:30
= hidden_field_tag :project_id, params[:project_id]
= hidden_field_tag :group_id, params[:group_id]
= hidden_field_tag :snippets, params[:snippets]
= hidden_field_tag :scope, params[:scope]
2015-09-25 12:07:36 +05:30
2015-09-11 14:41:01 +05:30
.search-holder.clearfix
2015-09-25 12:07:36 +05:30
.input-group
2015-09-11 14:41:01 +05:30
= search_field_tag :search, params[:search], placeholder: "Search for projects, issues etc", class: "form-control search-text-input", id: "dashboard_search", autofocus: true
2015-09-25 12:07:36 +05:30
%span.input-group-btn
= button_tag 'Search', class: "btn btn-primary"
2015-09-11 14:41:01 +05:30
- unless params[:snippets].eql? 'true'
2015-09-25 12:07:36 +05:30
%br
= render 'filter'