promotion label removed

This commit is contained in:
Nicolas Bally 2012-09-14 12:12:47 +02:00
parent f184a231e1
commit f463b538f7

View File

@ -1,9 +1,6 @@
.promotion{:style => ("margin-right:0px" if (promotion_counter+1).modulo(3) == 0)} .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 .img
=image_tag promotion.image_file.file.square.url if promotion.image_file =image_tag promotion.image_file.file.square.url if promotion.image_file