17 lines
421 B
Plaintext
17 lines
421 B
Plaintext
-if article.without_text_image_file
|
|
-img_url = "http://transformeurs.quartz.xyz"+article.without_text_image_file.file.large.url
|
|
-elsif article.image_file
|
|
-img_url = "http://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
|
|
|
|
|
|
|
|
|