Sha256: 822f1a2cc567751b17025d0522f74fae8bf48166507f83d9540a434e0dc11c37
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
- if self.class.const_defined?(:SEARCHABLE) || self.class.const_defined?(:FILTERS) = form_tag(base_path, form_verb: :get, attributes: { class: '' }) do - if self.class.const_defined?(:SEARCHABLE) .form-group .input-group %input.form-control{ name: 'q', type: 'text', placeholder: 'Search...', value: params[:q] } .input-group-btn %button.btn.btn-primary{ type: 'submit' } %span.fa.fa-search - if self.class.const_defined? :FILTERS .input-group-btn %button.btn.btn-secondary{ type: 'button', :'data-toggle' => 'collapse', :'data-target' => '#filter-form', :'aria-expanded' => 'false', :'aria-controls' => '#filter-form'} %span.fa.fa-arrow-down - if self.class.const_defined?(:FILTERS) #filter-form.row{ class: self.class.const_defined?(:SEARCHABLE) ? 'collapse' : '' } - FILTERS.each do |filter| = filter_control(filter, filters: FILTERS.count) - unless self.class.const_defined?(:SEARCHABLE) %button.btn.btn-secondary{ type: 'submit'} Go
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.9.1 | views/partials/search.haml |
ditty-0.9.0 | views/partials/search.haml |