boissier_app/app/views/public/promotions/_promotion.html.haml
2017-09-12 22:35:27 +02:00

12 lines
283 B
Plaintext

.promotion.element{:style => ("margin-right:0px" if (promotion_counter+1).modulo(3) == 0)}
.img
=image_tag promotion.image_file.file.large.medium.small.thumb.url if promotion.image_file
.title
=promotion.title
.description
=simple_format promotion.description
.clear