<%# if @feature_value.nil? %> <%# REPORTAGES_LOG.warn("[#{Time.now().strftime("%Y-%m-%d %H:%M:%S")}] : Ouverture caroussel - nb images : #{@medias.size}") if @medias.size >= BIG_REP_SIZE %> <%# else %> <%# REPORTAGES_LOG.warn("[#{Time.now().strftime("%Y-%m-%d %H:%M:%S")}] : Ouverture caroussel - reportage '#{@feature_value}' - nb photos : #{@feature_number} - string_key : #{@feature_prov_sk}") if @feature_number >= BIG_REP_SIZE %> <%# end %>
<%= render(partial: "carrousel") %>
<% unless @feature_value.nil? || @feature_value == "1" %>
<%# if @offre %> <%# end %> <% if @feature_number >= MAX_IMG_REPORTAGE %> <%= "#{I18n.t 'media.feature'}: #{@feature_value}"%>
<%= t('media.more_pictures_in_reportage_part1',nb_max: MAX_IMG_REPORTAGE) %> <%= link_to(t('media.more_pictures_in_reportage_part2'), searches_path("providers[#{@feature_prov_id}]" => '1', reportage: "\"#{@feature_ref}\""), style: "color:#da0e0f") %> <%= t('media.more_pictures_in_reportage_part3') %>
<% else %> <%= "#{I18n.t 'media.feature'}: #{@feature_value} / #{I18n.t 'pictures'} : #{@feature_number}"%>
<% end %>
<%= @feature_text unless @feature_text.blank? %>
<% end%> <% if session[:pixtech] && session[:pixtech].include?('vitrine') %> <%= render 'user_sessions/log_in_modal' %> <%= render 'shared/showcase_form' %> <% end %> <% if session[:pixtech] && !session[:pixtech].blank? && !Pixways.get_pixtech_param_value(session[:pixtech],'share_url_domain').blank? && Server.itself?(PIXADMIN_SERVER_NAME) && (current_user.is_provider_admin? || current_user.is_superadmin? || current_user.is_photographer? || current_user.is_photographer_admin? )%> <%= render 'shared/share_modal' %> <% end %>