<% 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: search_filter_params[:size],
filter: 'last_upload',
content_id: @content.try(:id),
element_id: @element.try(:id)
) %>
<% end %>
<%= link_to(
render_icon('search-minus'),
alchemy.admin_pictures_path({
size: "small",
content_id: @content,
element_id: @element,
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_params[:tagged_with]
}),
remote: true,
title: Alchemy.t(:small_thumbnails),
class: "icon_button"
) %>
<%= link_to(
render_icon('search'),
alchemy.admin_pictures_path({
size: "medium",
content_id: @content,
element_id: @element,
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_params[:tagged_with]
}),
remote: true,
title: Alchemy.t(:medium_thumbnails),
class: "icon_button"
) %>
<%= link_to(
render_icon('search-plus'),
alchemy.admin_pictures_path({
size: "large",
content_id: @content,
element_id: @element,
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_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' %>