Sha256: 74004ba08b74a62ea1b34af04538fbe203a151507a56fa51d05a2637a7aaffd3
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
<% category ||= nil data = { controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit", refine__typeahead_list_target: "listItem", list_item_value: condition.display, } if category && category.present? data[:category] = category end link_class = "refine--condition-list-item refine--condition-list-card" link_class += " refine--condition-list-card" %> <%= link_to( new_refine_advanced_inline_criterion_url(@criterion.to_params.deep_merge(refine_inline_criterion: {condition_id: condition.id})), { class: link_class, }.merge(data: data)) do %> <% if condition.has_icon? %> <% if condition.icon_class.present? %> <div class="refine--condition-list-icon-container <%= condition.icon_container_class %>"> <i class="refine--condition-list-card-icon <%= condition.icon_class %>"></i> </div> <% else %> <%= render partial: condition.icon_template[:template_path], locals: condition.icon_template[:locals] %> <% end %> <% end %> <%= condition.display %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems