% content_for(:toolbar) do %>
<%= toolbar_button(
icon: 'upload',
label: _t(:upload_image),
url: alchemy.new_admin_picture_path(size: @size),
hotkey: 'alt-n',
overlay_options: {
title: _t(:upload_image),
size: '540x590'
},
class: 'icon_button',
title: _t(:upload_image),
if_permitted_to: [:new, :alchemy_admin_pictures]
) %>
<%= link_to(
render_icon('zoom-out'),
alchemy.admin_pictures_path({
size: "small",
query: params[:query]
}),
title: _t(:small_thumbnails),
class: "icon_button please_wait"
) %>
<%= link_to(
render_icon('zoom-equal'),
alchemy.admin_pictures_path({
size: "medium",
query: params[:query]
}),
title: _t(:medium_thumbnails),
class: "icon_button please_wait"
) %>
<%= link_to(
render_icon('zoom-in'),
alchemy.admin_pictures_path({
size: "large",
query: params[:query]
}),
title: _t(:big_thumbnails),
class: "icon_button please_wait"
) %>
<%= hidden_field_tag('size', @size, id: 'overlay_thumbnails_size') %>
<% permitted_to?(:flush, :alchemy_admin_pictures) do %>
<%= toolbar_button(
icon: 'flush',
url: alchemy.flush_admin_pictures_path,
overlay: false,
link_options: {
remote: true,
method: :post
},
label: _t('Flush picture cache'),
class: 'icon_button please_wait',
title: _t('Flush picture cache'),
skip_permission_check: true
) %>
<% end %>
<%= link_to(
render_icon('select_all'),
'',
id: 'select_all_pictures',
class: 'icon_button',
'data-alchemy-hotkey' => 'alt-a'
) %>
<%= render partial: 'alchemy/admin/partials/search_form' %>
<% end %>
<%= @pictures.total_count %>
<%= Alchemy::Picture.model_name.human(count: @pictures.total_count) %>
<%= render 'archive' %>
<% content_for :javascripts do %>
<% end %>