This commit is contained in:
Nicolas Bally 2018-08-28 15:07:48 +02:00
parent e37d59e43c
commit 8303d5644f
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ $dark_orange:#206e95;
.img{
height:250px;
background:no-repeat center center;
background-size:cover;
background-size:contain;
}
.description{
height:80px;

View File

@ -1,7 +1,7 @@
=link_to public_reseaux_product_path(:reseaux_id => params[:reseaux_id],:id => product.id, :slug => product.lang(I18n.locale).slug) do
.product.product-item
.inner.with_ratio
.img{:style => "background-image:url('#{(product.default_image.image_file.file.large.medium.url if product.default_image)}')"}
.inner
.img.with_ratio{:style => "background-image:url('#{(product.default_image.image_file.file.large.medium.url if product.default_image)}')", :data => {:ratio => "0.77"}}
.description
%h3.product-title