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