-if (data_file.show_yumpu or data_file.order_link or data_file.download_link) and data_file.data_file_category and data_file.lang_site_id == @lang.id and (data_file.data_file_category_id != 8 or params[:document] == "magazine-noe")
  -@count = @count += 1
  .article_search
    -img_url = ""
    -if data_file.image_file
      -img_url = data_file.image_file.file.large.medium.small.url
    -img_url = data_file.square_image_file.file.large.url if data_file.square_image_file
    
    .image{:style => "background-image:url('#{img_url}');"}


    .description
    
      %h2= data_file.title.to_s.truncate(90, separator: ' ')
      .desc
        =l(data_file.created_at, :format => :date)
        =#%span.sep="|"
        %br
        =qit(data_file.data_file_category.name) if data_file.data_file_category
        %br

        -if data_file.show_yumpu?
          =link_to ic(:eye)+" "+qit("lire en ligne"), read_data_file_path(data_file.token), :target => "_blank"
          -if data_file.download_link or data_file.order_link
            %span.sep="|"
        -if data_file.download_link
          =link_to ic(:download)+" "+qit("télécharger"),data_file.file.url
        -if data_file.order_link
          -if @lang.slug == "fr" and data_file.data_file_category_id != 8
            -if data_file.download_link
              %span.sep="|"
            =link_to ic(:"file")+" "+qit("commander en version papier"), new_public_document_order_path(:token => data_file.token), :remote => true
        
    .clear
