Sha256: 092d3bdc6f2dc87cd2667125407052ab09c0a3ac1bb347e860aa29806162604e

Contents?: true

Size: 495 Bytes

Versions: 45

Compression:

Stored size: 495 Bytes

Contents

<% promotions = @product.possible_promotions %>
<% if promotions.any? %>
<div id="promotions">
  <h3><%= t(:promotions) %></h3>

  <% promotions.each do |promotion| %>
  <div>
    <h4><%= promotion.name %></h4>
    <p><%= promotion.description %></p>
    <% if promotion.products.any? %>
    <ul>
      <% promotion.products.each do |product| %>
        <li><%= link_to product.name, product_path(product) %></li>
      <% end %>
    </ul>
    <% end %>
  </div>
  <% end %>

</div>
<% end %>


Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
spree_promo-1.0.0.rc1 app/views/spree/products/_promotions.html.erb
spree_promo-0.70.3 app/views/products/_promotions.html.erb
spree_promo-0.70.2 app/views/products/_promotions.html.erb
spree_promo-0.70.1 app/views/products/_promotions.html.erb
spree_promo-0.70.0 app/views/products/_promotions.html.erb