Sha256: 509c11ea2cb7e7c5fd0a91ada944896042e50c9de63988835323b0e17ca6110d
Contents?: true
Size: 1.15 KB
Versions: 19
Compression:
Stored size: 1.15 KB
Contents
<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %> <div id="product_<%= product.id %>" class="col-md-3 col-sm-6 col-xs-6 product-list-item" data-hook="products_list_item" itemscope itemtype="https://schema.org/Product"> <div class="panel panel-default"> <% cache(taxon.present? ? [I18n.locale, current_currency, taxon, product] : cache_key_for_product(product)) do %> <div class="panel-body text-center product-body"> <%= link_to url, itemprop: "url" do %> <%= small_image(product, itemprop: "image") %><br/> <%= content_tag(:span, truncate(product.name, length: 50), class: 'info', itemprop: "name", title: product.name) %> <% end %> <br/> </div> <div class="panel-footer text-center"> <span itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span class="price selling lead" itemprop="price" content="<%= product.price_in(current_currency).amount.to_d %>"> <%= display_price(product) %> </span> <span itemprop="priceCurrency" content="<%= current_currency %>"></span> </span> </div> <% end %> </div> </div>
Version data entries
19 entries across 19 versions & 1 rubygems