Sha256: 3b70ae7ebf645124d9264f1f5cefa3c6d40a2dc1778532630868a8d81d99b6c1
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 Bytes
Contents
<% # a hash mapping Category => [array, of, conditions], sorted by category categorized_conditions = @conditions .group_by {|c| c.meta[:category].presence} .sort_by do |(category, _conditions)| if @refine_filter.has_category_ordering? @refine_filter.category_order.index(category) || Float::INFINITY else category.to_s.downcase end end .to_h recommended_conditions = @conditions .select { |c| c.meta[:recommended] } .sort_by {|recommended| recommended.to_s.downcase } # an array of uncategorized conditions uncategorized_conditions = categorized_conditions.delete(nil) fill_modal = @fill_modal || false dialog_class = "sl-dialog refine--inline-modal-container" dialog_class += " dialog-full" if fill_modal %> <%= turbo_frame_tag @criterion do %> <sl-dialog open class="<%= dialog_class %>" no-header> This is where the main content will render... </sl-dialog> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refine-rails-2.11.8 | app/views/refine/inline/criteria/index_advanced.html.erb |
refine-rails-2.11.6 | app/views/refine/inline/criteria/index_advanced.html.erb |