<% if can? :create, Alchemy::Picture %> <%= render 'alchemy/admin/uploader/button', object: Alchemy::Picture.new, dropzone: '#assign_image_list', file_attribute: 'image_file', in_dialog: true, redirect_url: alchemy.admin_pictures_path( size: params[:size], filter: 'last_upload', content_id: @content.try(:id), element_id: @element.try(:id), options: @options ) %>
<% end %>
<%= link_to( render_icon('zoom-out'), alchemy.admin_pictures_path({ size: "small", content_id: @content, element_id: @element, q: params[:q], options: @options.to_json, filter: params[:filter], tagged_with: params[:tagged_with] }), remote: true, title: Alchemy.t(:small_thumbnails), class: "icon_button" ) %>
<%= link_to( render_icon('zoom-equal'), alchemy.admin_pictures_path({ size: "medium", content_id: @content, element_id: @element, q: params[:q], options: @options.to_json, filter: params[:filter], tagged_with: params[:tagged_with] }), remote: true, title: Alchemy.t(:medium_thumbnails), class: "icon_button" ) %>
<%= link_to( render_icon('zoom-in'), alchemy.admin_pictures_path({ size: "large", content_id: @content, element_id: @element, q: params[:q], options: @options.to_json, filter: params[:filter], tagged_with: params[:tagged_with] }), remote: true, title: Alchemy.t(:big_thumbnails), class: "icon_button" ) %>
<%= hidden_field_tag('size', @size, id: 'overlay_thumbnails_size') %>
<%= render partial: 'alchemy/admin/partials/remote_search_form' %>