=link_to public_p_product_path(p_product.id) do

  .p_product.with_ratio{:data => {:ratio => 1.62}}
    %p.name
      %strong=p_product.name
      -if p_product.p_ep
        ="-"
        = "#{p_product.p_ep.ep}g/m²" 
      
      
    .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 current_p_customer.account_validated
      -if p_product.get_prices(current_p_customer).first
        %p.price
          -if p_product.get_prices(current_p_customer).count > 1
            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
        
          -elsif p_product.get_prices(current_p_customer).count == 1
            =number_to_currency p_product.get_prices(current_p_customer).last.price