Sha256: 0b22d3f51ea9e5c682f409bbf6b99d70138d7b8a83f7790d6a9f00fb33846a4d

Contents?: true

Size: 817 Bytes

Versions: 8

Compression:

Stored size: 817 Bytes

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_to(
  new_refine_inline_criterion_url(@criterion.to_params.deep_merge(refine_inline_criterion: {condition_id: condition.id})),
  {
    class: "refine--condition-list-item",
  }.merge(data: data)) do %>
  <% if condition.has_icon? %>
    <% if condition.icon_class.present? %>
      <i class="<%= condition.icon_class %>"></i>
    <% else %>
      <%= render partial: condition.icon_template[:template_path], locals: condition.icon_template[:locals] %>
    <% end %>
  <% end %>
  <%= condition.display %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
refine-rails-2.11.8 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.6 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.5 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.4 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.3 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.2 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.1 app/views/refine/inline/criteria/_condition_list_item.html.erb
refine-rails-2.11.0 app/views/refine/inline/criteria/_condition_list_item.html.erb