<% pw_c = "#{image_tag(med.medium_location, class: "pw_media_img_preview")}" %>
<% pw_c += "
#{I18n.t('date_created')} : #{med.localised_date_created}
#{I18n.t('headline')} : #{med.headline}
#{I18n.t('description')} : #{med.description}
#{I18n.t('city')} : #{med.city}
#{I18n.t('country')} : #{med.country}
#{I18n.t('source',provider_word: I18n.t(session[:provider_word], count: 1)).capitalize} : #{med.source}
#{I18n.t('creator_iptc',creator_word: I18n.t(session[:creator_word]))} : #{med.creator}
#{I18n.t('rights')} : #{med.rights}
#{I18n.t('credit')} : #{med.credit}
#{I18n.t('subject')} : #{med.subject}
#{I18n.t('instructions')} : #{med.instructions}
<%= image_tag(med.thumb_location, size: fit_square(med.ratio,160), class: 'popover-trigger', 'data-c' => pw_c, 'data-style' => 'primary')%>