boissier_app/app/views/public/promotions/_promotion.html.haml
2012-09-14 12:08:30 +02:00

15 lines
504 B
Plaintext

.promotion{:style => ("margin-right:0px" if (promotion_counter+1).modulo(3) == 0)}
-if promotion.month.beginning_of_month == Date.today.beginning_of_month
.label= image_tag ('front/en-cours.png')
-elsif promotion.month.beginning_of_month == Date.today.next_month.beginning_of_month
.label= image_tag ('front/a-venir.png')
.img
=image_tag promotion.image_file.file.square.url if promotion.image_file
.title
%h3=promotion.title
.description
=simple_format promotion.description
.clear