<% if form_file.new_record? %>
<% else %>
<% if form_file.file.blank? %> <%= t(:no_file) %> <% else %> <%= link_to content_tag(:i) + form_file.file_identifier, form_file.file.url, {:class => 'file-link file-type', :target => '_blank', :title => form_file.file_identifier} %> <% end %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %> <%= locale %>"> <%= f.fields_for :file_title_translations do |f| %> <%= f.text_field locale, :class => "input-medium", placeholder: t('file.name'), :value => (form_file.file_title_translations[locale] rescue nil) %> <% end %> <% end %> <%#= f.text_field :sort_number , :class => "input-mini" %> <%= hidden_field_tag 'digital_archive[digital_content_archive_files_attributes][0][choose_lang][]', '' %> <% if form_file.new_record? %> <% else %> <%= f.hidden_field :id %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> Downloaded <%= form_file.download_count %> time<%= form_file.download_count > 1 ? "s" : "" %>. <% end %>