boissier_app/app/views/public/promotions/_promotion.html.haml
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

14 lines
430 B
Plaintext

.promotion
-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