<% if @pagin %>

<% else %>

<% end %> <% @medias.each do |med| %> <% unless med.nil? %> <% pw_caption = "#{I18n.t 'media.info_photo'}
" %> <% pw_caption += "#{I18n.t('date_created')} : #{med.localised_date_created}
#{I18n.t('reception_date')} : #{med.localised_reception_date}
" %> <% pw_caption += "#{I18n.t('pp_created_at')} : #{I18n.l(med.created_at)}
" if (Server.itself?(PIXADMIN_SERVER_NAME) || current_user.is_superadmin?) %> <% pw_caption += "#{I18n.t('updated_at')} : #{I18n.l(med.updated_at)}
" if (Server.itself?(PIXADMIN_SERVER_NAME) || current_user.is_superadmin?) %> <% pw_caption += "#{I18n.t('headline')} : #{med.headline}
#{I18n.t('description')} : #{med.description}
#{I18n.t('subject')} : #{med.subject}
#{I18n.t('category')} : #{med.category}
#{I18n.t('supplemental_category')} : #{med.supplemental_category}
#{I18n.t('city')} : #{med.city}
#{I18n.t('state')} : #{med.state}
#{I18n.t('iptc_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('normalized_credit')} : #{med.normalized_credit}
#{I18n.t('instructions')} : #{med.instructions}
#{I18n.t('original_filename')} : #{med.original_filename}
#{I18n.t(:file_name,service_name:session[:service_name])} : #{med.file_name}
#{I18n.t('object_name')} : #{med.title}
" %> <% pw_caption += "ms_image_id : #{med.ms_image_id}
" if current_user && current_user.is_superadmin? %> <% pw_caption += "URL : #{med.hires_location}
" if ((med.fonds==1) and !(med.hires_location.blank?) and (med.provider.string_key=='Pond5')) %> <% pw_caption += "#{I18n.t('reportage')} : #{med.reportage}
" %> <% pw_caption += "#{I18n.t('pp_category.display_name')} : #{I18n.t("pp_category.label.#{med.pp_category.label}")}
" if show_pp_category %> <% pw_caption += "#{I18n.t('hr_size')} : #{med.hd_size}
#{I18n.t('max_size')} : #{med.max_size}" pw_prov_logo = "" if session[:border_color] && !session[:border_color][med.provider_id].blank? styl = {oncontextmenu: "return false", ondrag: "return false", onmousedown: "return false", class: "pw_media_img_preview", style: "border:3px solid #{session[:border_color][med.provider_id]};"} html_styl = "oncontextmenu= 'return false' ondrag='return false' onmousedown='return false' class='pw_media_img_preview' style='border:3px solid #{session[:border_color][med.provider_id]};'" else styl = {oncontextmenu: "return false", ondrag: "return false", onmousedown: "return false", class: "pw_media_img_preview"} html_styl = "oncontextmenu= 'return false' ondrag='return false' onmousedown='return false' class='pw_media_img_preview'" end if med.ms_id == "flv" pw_medium = " " elsif med.ms_id == "mov" pw_medium = " " elsif med.ms_id == "mp4" pw_medium = "" elsif med.ms_id == "embed" pw_medium = " " else if (session[:provpe] && session[:provpe][med.provider_id] == 0) || @display_thumb pw_medium = "#{image_tag(med.thumb_location, styl ) }" else pw_medium = "#{image_tag(med.medium_location, styl ) }" end end pw_prov_logo = "#{image_tag(med.provider.logo.url, class: 'pw_prov_logo', title: med.provider.name)}" unless med.provider.logo.url.blank? pw_buttons = "

" pw_buttons += "#{I18n.t 'media.photo'}: #{med.original_filename}" pw_buttons += "" unless @share pw_buttons += "
" #pw_buttons = "#{render :partial => 'buttons_med', :locals => {:med => med}}" %> <%= image_tag(med.thumb_location, {id: med.id, height: "105px", 'data-pw_caption' => pw_caption, 'data-pw_medium' => pw_medium, 'data-pw_prov_logo' => pw_prov_logo, 'data-pw_filename' => "#{med.original_filename}", 'data-pw_buttons' => pw_buttons}.merge(styl) ) %> <% end %> <% end %>