Sha256: f61cc6c528598247ebfcd4b773b9a16d9bebec46542dfb96c6284d739f5ceb67
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 Bytes
Contents
- discounted_type = package.class.to_s - discounted_id = discounted_type != "ShopDiscountable" ? package.id : package.discounted_id - discountable_id = discounted_type != "ShopDiscountable" ? nil : package.id - success_element = discounted_type != "ShopDiscountable" ? 'discount_packages' : 'available_packages' - class_type = discounted_type != "ShopDiscountable" ? 'available' : 'discounted' %li.product{:class => "discountable #{class_type} package", :id => "#{class_type}_#{package.id}", :'data-discounted_id' => discounted_id, :'data-discounted_type' => discounted_type, :'data-discounted_type_human' => 'Package', :'data-discountable_id' => discountable_id, :'data-success_element' => success_element } %span.name= truncate((package.name rescue package.discounted.name), 30, '...') .actions %span.delete
Version data entries
3 entries across 3 versions & 1 rubygems