-if article.without_text_image_file -img_url = "https://transformeurs.quartz.xyz"+article.without_text_image_file.file.large.url -elsif article.image_file -img_url = "https://transformeurs.quartz.xyz"+article.image_file.file.large.url -else -img_url = "" %a.article_img{:href => article_path(:slug => article.slug), :style => "background-image:url('#{img_url}')"} .content %span=article.title