<% 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 %> <%= hidden_field_tag "#{f.object_name}[choose_lang][]", '' %> <% if form_file.new_record? %> <%= f.hidden_field :sort_number, :value => "new_archive_file_sort_order_XXX", :class => "input-mini" %> <% else %> <%= f.hidden_field :id %> <%= f.hidden_field :sort_number , :class => "file-sort-number-field" %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> Downloaded <%= form_file.download_count %> time<%= form_file.download_count > 1 ? "s" : "" %>. <% end %>