- if data_file.file?

  
  %tr#data_file.data_file{:id => data_file.id, :"data-id" => data_file.id, :"data-name" => data_file.abstract_file_name, :"data-description" => data_file.description, :"data-show_url" => admin_data_file_path(:id => data_file.id, :manager => params[:manager], :multiple => params[:multiple]), :"data-edit_url" => edit_admin_data_file_path(:id => data_file.id, :manager => params[:manager], :multiple => params[:multiple]) , :class => ("new" if @data_file_create)}
    
    %td{:style => "width:32px;text-align:center;"}
      -ext = File.extname(data_file.file.path)[1..-1]
      =image_tag "file_types/"+ext+".png", :style => "height:30px;"
    %td
      -if data_file.image_file
        =image_tag data_file.image_file.file.large.medium.small.thumb.url, :style => "width:250px;"
    %td
      =data_file.abstract_file_name
    %td{:style => ""}
  

      =data_file.file_type
    %td 
      =data_file.file.url
      %br
      Page par page
      =link_to read_data_file_path(data_file.token), read_data_file_path(data_file.token), :target => "_blank"
    %td{:style => "width:120px;text-align:right;"}
      =link_to i(:"download"), data_file.file.url

      = link_to i(:"trash-o"), admin_data_file_path(:id => data_file.id, :manager => params[:manager], :multiple => params[:multiple]), :data => {:confirm => 'Voulez-vous vraiment supprimer cette image ?'}, :method => :delete, :remote => true
      = link_to i(:"pencil"), edit_admin_data_file_path(:id => data_file.id, :manager => params[:manager], :multiple => params[:multiple]), :remote => true
      = link_to i(:check), "#",:onclick => "manager_send_data_file("+data_file.id.to_s+");return false;" if params[:manager] and !params[:multiple]
  
