Sha256: 01d8191b189cabc745fe357554e3730009f3c897e4c4468043f295664588fb52

Contents?: true

Size: 1.01 KB

Versions: 35

Compression:

Stored size: 1.01 KB

Contents

<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %>
<% price = product.price_in(current_currency).amount %>
<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&.id, 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 class="price selling lead" content="<%= price.nil? ? 0 : price.to_d %>">
          <%= display_price(product) %>
        </span>
        <span content="<%= current_currency %>"></span>
      </div>
    <% end %>
  </div>
</div>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spree_frontend-4.1.15 app/views/spree/products/_product.html.erb
spree_frontend-4.2.7 app/views/spree/products/_product.html.erb
spree_frontend-4.3.3 app/views/spree/products/_product.html.erb
spree_frontend-4.7.0 app/views/spree/products/_product.html.erb
spree_frontend-4.6.0 app/views/spree/products/_product.html.erb
spree_frontend-4.5.0 app/views/spree/products/_product.html.erb
spree_frontend-4.2.6 app/views/spree/products/_product.html.erb
spree_frontend-4.3.2 app/views/spree/products/_product.html.erb
spree_frontend-4.4.0 app/views/spree/products/_product.html.erb
spree_frontend-4.3.1 app/views/spree/products/_product.html.erb
spree_frontend-4.3.0 app/views/spree/products/_product.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/products/_product.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/products/_product.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/products/_product.html.erb
spree_frontend-4.2.5 app/views/spree/products/_product.html.erb
spree_frontend-4.1.14 app/views/spree/products/_product.html.erb
spree_frontend-4.2.4 app/views/spree/products/_product.html.erb
spree_frontend-4.2.3.1 app/views/spree/products/_product.html.erb
spree_frontend-4.1.13.1 app/views/spree/products/_product.html.erb
spree_frontend-4.2.3 app/views/spree/products/_product.html.erb