Sha256: 104f5e8a5366f1eec3469da4cc8f674d75f440f711bf3ba85e34ef7db0b02985
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
- if self.class.const_defined?(:SEARCHABLE) && SEARCHABLE.count.positive? || self.class.const_defined?(:FILTERS) && FILTERS.count.positive? = form_tag(base_path, form_verb: :get, attributes: { class: '' }) do - if self.class.const_defined?(:SEARCHABLE) && SEARCHABLE.count.positive? .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) && FILTERS.count.positive? .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) && FILTERS.count.positive? #filter-form{ class: self.class.const_defined?(:SEARCHABLE) && SEARCHABLE.count.positive? ? 'collapse' : '' } .card.card-default.mb-2 .card-body .row - FILTERS.each do |filter| = filter_control(filter, filters: FILTERS.count) - unless self.class.const_defined?(:SEARCHABLE) && SEARCHABLE.count.positive? .form-group %label %button.form-control.btn.btn-secondary{ type: 'submit'} Go
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.11.1 | views/partials/search.haml |
ditty-0.10.2 | views/partials/search.haml |
ditty-0.10.1 | views/partials/search.haml |