<% @uploads.each do |im| %>
<% unless im.nil? %>
<% pw_c = "#{image_tag(im.medium_location)}" %>
<% pw_c += "
#{I18n.t('original_filename')} : #{im.original_filename}
#{I18n.t('reception_date')} : #{im.localised_reception_date}
#{I18n.t('date_created')} : #{im.localised_date_created}
#{I18n.t('normalized_credit')} : #{im.normalized_credit}
#{I18n.t('description')} : #{im.description}
" %>
<%= image_tag(im.thumb_location, alt: im.normalized_credit, class: "popover-trigger", data: {content: pw_c, style: 'primary', toggle: 'popover'}, size: fit_square(im.ratio,160) )%>
<%= im.original_filename %>
<% end %>
<% end %>