-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)

-if article.without_text_image_file
  -img_url = "https://le-petit-gravier.com"+article.without_text_image_file.file.large.url
-elsif article.image_file
  -img_url = "https://le-petit-gravier.com"+article.image_file.file.large.url

-if article_valid_to_show(article, @lang, Time.now)

  =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "article_search" do
  
    .image{:style => "background-image:url('#{img_url}');"}
  
  
    .description
      %h3 Article
      -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.where(:enabled => true).count.to_s
  
        -if false
          =simple_format lang_article.description
          %p.read_more
            =qit "blog lire plus", "Lire la suite"
    .clear

  -if article.image_file and article.image_file.photograph

    -@page_images_credits << article.image_file.photograph
  