Sha256: db1e01acf26ed926e387867d035cd3b2d034e78df6bf9649a855b973848f26e0

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

<% 
show_bullets_for_taxon = @product.taxons.first

image_code_property_id = @product.product_properties.where(:property_id => Gator::Application::PRODUCT_PROPERTIES[:image_code] ).first.value

bullets = show_bullets_for_taxon.bullets.image_code(image_code_property_id).active.sorted

unless !(@product or bullets.empty?) %>
  <section id="bullets">
    <ul>
      <% 
      bullets.each do |bullet| %>
        <%= content_tag :li, bullet.description %>
      <% end %>
    </ul>
  </section>
<% end %> 

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_category_bullets-0.0.2 app/views/spree/products/_custom_bullets.html.erb
spree_category_bullets-0.0.1 app/views/spree/products/_custom_bullets.html.erb