Sha256: 558895dbe0a402bf46b93eaf340446fe45d86b7e29b3c332ae4e30778fe95cf5
Contents?: true
Size: 934 Bytes
Versions: 10
Compression:
Stored size: 934 Bytes
Contents
- discounted_type = category.class.to_s - discounted_id = discounted_type == "ShopCategory" ? category.id : category.discounted_id - discountable_id = discounted_type == "ShopCategory" ? nil : category.id - success_element = discounted_type == "ShopCategory" ? 'discount_categories' : 'available_categories' - class_type = discounted_type == "ShopCategory" ? "available" : "discounted" %li.category{:class => "discountable #{class_type} category", :id => "#{discounted_type}_#{category.id}", :'data-discounted_id' => discounted_id, :'data-discounted_type' => discounted_type, :'data-discounted_type_human' => 'Category', :'data-discountable_id' => discountable_id, :'data-success_element' => success_element } %span.name= truncate((category.name rescue category.discounted.name), 30, '...') %span.handle= (category.handle rescue category.discounted.handle) .actions %span.delete
Version data entries
10 entries across 10 versions & 2 rubygems