Sha256: 7dcc3a21a2a170afe3ad43d34bd08cd9bb91db6c1330746d79d28a13be97e439

Contents?: true

Size: 910 Bytes

Versions: 12

Compression:

Stored size: 910 Bytes

Contents

<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %>
<div id="product_<%= product.id %>" class="d-flex w-100 col-12 col-sm-6 col-lg-4 col-xl-3 product-list-item mb-4" data-hook="products_list_item">
  <div class="card w-100">
    <% cache(taxon.present? ? [I18n.locale, current_currency, taxon, product] : cache_key_for_product(product)) do %>
      <div class="card-body text-center product-body">
        <%= link_to url, class: 'd-block text-center' do %>
          <%= small_image(product, class: "d-block mx-auto") %>
          <%= content_tag(:span, truncate(product.name, length: 50), class: 'info mt-3 d-block', title: product.name) %>
        <% end %>
      </div>
      <div class="card-footer text-center">
        <span>
          <span class="price selling lead">
            <%= display_price(product) %>
          </span>
        </span>
      </div>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_frontend-4.0.9 app/views/spree/products/_product.html.erb
spree_frontend-4.0.8 app/views/spree/products/_product.html.erb
spree_frontend-4.0.7.1 app/views/spree/products/_product.html.erb
spree_frontend-4.0.7 app/views/spree/products/_product.html.erb
spree_frontend-4.0.6 app/views/spree/products/_product.html.erb
spree_frontend-4.0.5 app/views/spree/products/_product.html.erb
spree_frontend-4.0.4 app/views/spree/products/_product.html.erb
spree_frontend-4.0.3 app/views/spree/products/_product.html.erb
spree_frontend-4.0.2 app/views/spree/products/_product.html.erb
spree_frontend-4.0.1 app/views/spree/products/_product.html.erb
spree_frontend-4.0.0 app/views/spree/products/_product.html.erb
spree_frontend-4.0.0.rc3 app/views/spree/products/_product.html.erb