suite
This commit is contained in:
parent
e5d25ef2e9
commit
aeb445e4f2
@ -10,13 +10,14 @@
|
|||||||
|
|
||||||
.img.with_ratio{:style => ("background: grey url('"+(p_product.image_file.file.large.medium.small.thumb.url if p_product.image_file).to_s+"?u="+(p_product.image_file.updated_at if p_product.image_file).to_s+"') no-repeat center center;background-size:contain;" ), :data => {:ratio => "1.10"}}
|
.img.with_ratio{:style => ("background: grey url('"+(p_product.image_file.file.large.medium.small.thumb.url if p_product.image_file).to_s+"?u="+(p_product.image_file.updated_at if p_product.image_file).to_s+"') no-repeat center center;background-size:contain;" ), :data => {:ratio => "1.10"}}
|
||||||
|
|
||||||
-if p_product.get_prices(current_p_customer).first
|
-if current_p_customer.account_validated
|
||||||
%p.price
|
-if p_product.get_prices(current_p_customer).first
|
||||||
-if p_product.get_prices(current_p_customer).count > 1
|
%p.price
|
||||||
Prix de
|
-if p_product.get_prices(current_p_customer).count > 1
|
||||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
Prix de
|
||||||
à
|
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
||||||
= number_to_currency p_product.get_prices(current_p_customer).first.price
|
à
|
||||||
|
= number_to_currency p_product.get_prices(current_p_customer).first.price
|
||||||
|
|
||||||
-elsif p_product.get_prices(current_p_customer).count == 1
|
-elsif p_product.get_prices(current_p_customer).count == 1
|
||||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
@ -26,34 +26,35 @@
|
|||||||
|
|
||||||
-if @p_product.get_prices(current_p_customer).count > 0 and @p_product.get_prices(current_p_customer).first.price > 0.0
|
-if @p_product.get_prices(current_p_customer).count > 0 and @p_product.get_prices(current_p_customer).first.price > 0.0
|
||||||
.sub_header
|
.sub_header
|
||||||
.right
|
-if current_p_customer.account_validated
|
||||||
|
.right
|
||||||
|
|
||||||
-if @p_product.get_prices(current_p_customer).count > 1
|
-if @p_product.get_prices(current_p_customer).count > 1
|
||||||
%p
|
%p
|
||||||
Prix de
|
Prix de
|
||||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||||
à
|
à
|
||||||
= number_to_currency @p_product.get_prices(current_p_customer).first.price
|
= number_to_currency @p_product.get_prices(current_p_customer).first.price
|
||||||
%table.table.price_table
|
%table.table.price_table
|
||||||
%tr
|
%tr
|
||||||
|
|
||||||
-@p_product.get_prices(current_p_customer).each do |price|
|
-@p_product.get_prices(current_p_customer).each do |price|
|
||||||
|
|
||||||
%td
|
%td
|
||||||
A partir de
|
A partir de
|
||||||
=price.nbr.to_i
|
=price.nbr.to_i
|
||||||
ex
|
ex
|
||||||
%tr
|
%tr
|
||||||
|
|
||||||
-@p_product.get_prices(current_p_customer).each do |price|
|
-@p_product.get_prices(current_p_customer).each do |price|
|
||||||
|
|
||||||
%td
|
%td
|
||||||
=number_to_currency price.price
|
=number_to_currency price.price
|
||||||
|
|
||||||
-elsif @p_product.get_prices(current_p_customer).count == 1
|
-elsif @p_product.get_prices(current_p_customer).count == 1
|
||||||
%p
|
%p
|
||||||
%strong Votre prix :
|
%strong Votre prix :
|
||||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||||
|
|
||||||
-if !current_p_customer.account_validated
|
-if !current_p_customer.account_validated
|
||||||
%p
|
%p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user