- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- @a_parts.each do |part|
.part.uk-card.uk-card-default.uk-card-hover data-id=part.id
- p_image = "/images/no_photo.png"
- if part.image
- images = part.image.split(',')
- p_image = (images[0] == nil) ? "/images/no_photo.png" : "/images/compressed_#{images[0]}"
- p_img = (images[0] == nil) ? "/images/no_photo.png" : "/images/#{images[0]}"
- p_image = p_img unless File.exists?("#{Rails.root.to_s}/public/images/compressed_#{images[0]}")
- if images[0].split('http').length > 1
- p_image = images[0]