• <%= link_to "#{I18n.t('open').capitalize}".html_safe, full_screen_light_box_path(@light_box), class: 'full_screen', target: '_blank', title: "#{I18n.t('open_fullscreen')}" %>
  • <%= link_to "#{I18n.t('delete').capitalize}".html_safe, light_box_path(@light_box), method: :delete, remote: true, data: {confirm: "#{I18n.t('confirm_delete_viewer')} #{@light_box.name} ?"}, title: "#{I18n.t('delete_lightbox')}" %>
  • <%= I18n.t('rename').capitalize %>
  • <%= link_to("#{I18n.t('print.print')}".html_safe, full_screen_light_box_path(:id => @light_box.id, :print => "true"), :target => "_blank") %>
  • <% bod = I18n.t('lightbox_login') %> <% vis_id = "#{@light_box.hash_code}" %> <%= mail_to('', "#{I18n.t('send_by_email')}".html_safe, subject: 'PixPalace '+I18n.t('viewer', name: @light_box.name), body: "#{bod} \n #{show_light_boxe_url(id: vis_id)}") %>
  • <% if current_user.is_provider_admin? || current_user.is_photographer? || current_user.is_photographer_admin? || current_user.is_superadmin? %>
  • <%= link_to("#{I18n.t('share')}".html_safe, "#", data: {toggle: "modal", target: "#share_msg"}) %>
  • <%= link_to("#{I18n.t('export').capitalize}".html_safe, light_box_to_csv_path(id: @light_box.id)) %>
  • <% end %>
<%= render partial: 'light_boxes/photos_action' %>
<% @lb_images.each_with_index do |im,index| %>
<% if session[:border_color][im.provider_id] %> <%= link_to image_tag(im.thumb_location, size: fit_square(im.ratio,80), style: "border:2px solid #{session[:border_color][im.provider_id]};"), medias_path(light_box: @light_box.id, page: params[:page], anchor: im.id), target: '_blank', title: I18n.t("display_picture_hint") %> <% else %> <%= link_to image_tag(im.thumb_location, size: fit_square(im.ratio,80)),medias_path(light_box: @light_box.id, page: params[:page], anchor: im.id), target: '_blank', title: I18n.t("display_picture_hint") %> <% end %>
  • <%= check_box_tag("lb_im_#{im.id}", '1', true) %>
  • <% if (current_user.is_provider_admin? || current_user.is_superadmin?) and (session[:provhd][im.provider_id] == 1) %>
  • <%#= link_to "X", remove_for_good_path(:id => @light_box.id, :ids => im.id), :title => "Supprimer de Pixpalace", :remote => :true, :data => {:confirm => "Voulez-vous vraiment supprimer cette photo de PixPalace ?"} %> <%#= link_to "".html_safe, edit_image_path(id: im.id), title: I18n.t("metadata_edit"), target: :new %>
  • <% end %>
  • <%= link_to "".html_safe, light_box_image_path(id: @light_box.id, "ids[]" => im.id), method: :delete, remote: :true, data: {confirm: I18n.t("trash_confirm")}, title: I18n.t("trash_hint") %>
<% if index.odd? %>
<% if im != @lb_images.last%>
<%end%> <%end%> <% end %>