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

Version Path
spree_frontend-3.4.6 app/views/spree/products/_product.html.erb
spree_frontend-3.3.6 app/views/spree/products/_product.html.erb
spree_frontend-3.4.5 app/views/spree/products/_product.html.erb
spree_frontend-3.3.5 app/views/spree/products/_product.html.erb
spree_frontend-3.4.4 app/views/spree/products/_product.html.erb
spree_frontend-3.4.3 app/views/spree/products/_product.html.erb
spree_frontend-3.3.4 app/views/spree/products/_product.html.erb
spree_frontend-3.4.2 app/views/spree/products/_product.html.erb
spree_frontend-3.3.3 app/views/spree/products/_product.html.erb
spree_frontend-3.4.1 app/views/spree/products/_product.html.erb
spree_frontend-3.4.0 app/views/spree/products/_product.html.erb
spree_frontend-3.4.0.rc2 app/views/spree/products/_product.html.erb
spree_frontend-3.4.0.rc1 app/views/spree/products/_product.html.erb
spree_frontend-3.3.2 app/views/spree/products/_product.html.erb
spree_frontend-3.3.1 app/views/spree/products/_product.html.erb
spree_frontend-3.3.0 app/views/spree/products/_product.html.erb
spree_frontend-3.3.0.rc4 app/views/spree/products/_product.html.erb
spree_frontend-3.3.0.rc3 app/views/spree/products/_product.html.erb
spree_frontend-3.3.0.rc2 app/views/spree/products/_product.html.erb