-if input.data_file
  
  -if input.style == "avec-photo"
    .detail_download_content
      -if input.data_file.image_file
        =image_tag input.data_file.image_file.file.large.medium.small.thumb.url
      -if input.data_file.data_file_category and 1 == 2
        =input.data_file.data_file_category.name
      
      -if input.title? 
        -title = input.title
      -else
        -title = input.data_file.title
      
      %h4=title
      .desc
        =simple_format input.data_file.long_desc
      .links
        =link_to "Télécharger",input.data_file.file.url
        
        -if input.show_yumpu?
          =link_to "Lire", read_data_file_path(input.data_file.token), :target => "_blank"
      
        -if input.boutique?
          =#link_to "Commander", "mailto:info@payresas.quartz.xyz?subject=commande de document&body=Fichier : https://payresas.quartz.xyz#{input.data_file.file.url} "
          =link_to "Commander", new_public_document_order_path(:token => input.data_file.token), :remote => true
      .clear
  
    
  -else
    -if @new_site
      
      -if input.data_file.data_file_category and 1 == 2
        =input.data_file.data_file_category.name
      
      -if input.title? 
        -title = input.title
      -else
        -title = input.data_file.title
  
  
    
      .download_content
        .right
          -if input.show_yumpu?
            =link_to ic(:eye), read_data_file_path(input.data_file.token), :target => "_blank"
          
          =link_to ic(:download),input.data_file.file.url
          
          -if input.boutique?
            =link_to ic(:"file"), new_public_document_order_path(:token => input.data_file.token), :remote => true
          
      
          
        %span
          =link_to input.data_file.file.url do
            =title
        .clear
        
    -else
      .download_content
        =link_to input.title.to_s, input.data_file.file.url
      
      

-else

  .download_content
    =link_to input.title.to_s, ""
    
