23 lines
720 B
Plaintext
23 lines
720 B
Plaintext
-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)
|
|
|
|
-img_url = article.image_file.file.large.medium.url if article.image_file
|
|
|
|
|
|
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "article-2x" do
|
|
|
|
.inner
|
|
.img{:style => "background-image:url('#{img_url}');"}
|
|
.description
|
|
%h2= lang_article.title
|
|
%p.date
|
|
="le "+l(article.published_at, :format => :human_date)
|
|
="-"
|
|
%span.coms=i(:"comment-o")+" "+article.comments.count.to_s
|
|
%p.read_more
|
|
Lire la suite
|
|
=#simple_format lang_article.description
|
|
|
|
|
|
-if article.image_file and article.image_file.photograph
|
|
|
|
-@page_images_credits << article.image_file.photograph |