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