From f463b538f76aa8535a79a90602b613a9d3934951 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 14 Sep 2012 12:12:47 +0200 Subject: [PATCH] promotion label removed --- app/views/public/promotions/_promotion.html.haml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/public/promotions/_promotion.html.haml b/app/views/public/promotions/_promotion.html.haml index 9c47c47..9252717 100644 --- a/app/views/public/promotions/_promotion.html.haml +++ b/app/views/public/promotions/_promotion.html.haml @@ -1,9 +1,6 @@ .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