Sha256: 4da3ad2a51616e886ad3aba488294fdfdae66274e454bef33e02bf6b4d3a4687

Contents?: true

Size: 820 Bytes

Versions: 7

Compression:

Stored size: 820 Bytes

Contents

- discounted_type = user.class.to_s

- discounted_id   = discounted_type != "ShopDiscountable" ? user.id          : user.discounted_id
- discountable_id = discounted_type != "ShopDiscountable" ? nil              : user.id
- success_element = discounted_type != "ShopDiscountable" ? 'discount_users' : 'available_users'
- class_type      = discounted_type != "ShopDiscountable" ? 'available'      : 'discounted'

%li.product{:class => "discountable #{class_type} user", :id => "#{class_type}_#{user.id}", :'data-discounted_id' => discounted_id, :'data-discounted_type' => discounted_type, :'data-discounted_type_human' => 'User', :'data-discountable_id' => discountable_id, :'data-success_element' => success_element }
  %span.name= truncate((user.name rescue user.discounted.name), 30, '...')
  .actions
    %span.delete

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiant-shop_discounts-extension-0.0.11 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.10 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.9 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.8 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.7 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.6 app/views/admin/shop/discounts/edit/shared/_user.html.haml
radiant-shop_discounts-extension-0.0.4 app/views/admin/shop/discounts/edit/shared/_user.html.haml