From 1d92ba074e4d8e14f3c26e569c84a1b748bb5862 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Mon, 29 Apr 2019 12:41:23 +0200 Subject: [PATCH] suite --- app/views/public/products/show.html.haml | 29 ++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/app/views/public/products/show.html.haml b/app/views/public/products/show.html.haml index 3c4a3a4..0131bce 100755 --- a/app/views/public/products/show.html.haml +++ b/app/views/public/products/show.html.haml @@ -21,24 +21,25 @@ + -if @product.orderable - .price - -if !@product.price_reduced_ht? - = number_to_currency(@product.price_ht, locale: :fr) - -else - = number_to_currency(@product.price_reduced_ht, locale: :fr) - HT + .price + -if !@product.price_reduced_ht? + = number_to_currency(@product.price_ht, locale: :fr) + -else + = number_to_currency(@product.price_reduced_ht, locale: :fr) + HT - %div - %span{:style => "font-weight:normal;"} - = number_to_currency(@product.price_ttc, locale: :fr) - TTC + %div + %span{:style => "font-weight:normal;"} + = number_to_currency(@product.price_ttc, locale: :fr) + TTC - -if @product.price_reduced_ht? - .price_reduced - %span.strip - = number_to_currency(@product.price_ttc, locale: :fr) + -if @product.price_reduced_ht? + .price_reduced + %span.strip + = number_to_currency(@product.price_ttc, locale: :fr)