Sha256: 44fcc69b465a6cfb03175d75c02377fd7ad2a405cd4a7057a82ff381868ba123

Contents?: true

Size: 1.01 KB

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
spree_frontend-4.1.7 app/views/spree/products/_product.html.erb
spree_frontend-4.1.6 app/views/spree/products/_product.html.erb
spree_frontend-4.1.5 app/views/spree/products/_product.html.erb
spree_frontend-4.1.4 app/views/spree/products/_product.html.erb
spree_frontend-4.1.3 app/views/spree/products/_product.html.erb
spree_frontend-4.1.2 app/views/spree/products/_product.html.erb
spree_frontend-4.1.1 app/views/spree/products/_product.html.erb
spree_frontend-4.1.0 app/views/spree/products/_product.html.erb
spree_frontend-4.1.0.rc3 app/views/spree/products/_product.html.erb
spree_frontend-4.1.0.rc2 app/views/spree/products/_product.html.erb
spree_frontend-4.1.0.rc1 app/views/spree/products/_product.html.erb