<%= check_box_tag "picture_ids[]", picture.id %>
<% if permitted_to?(:destroy, :alchemy_admin_pictures) && picture.deletable? %>
<%= link_to_confirmation_window(
"",
_t("confirm_to_delete_image_from_server"),
alchemy.admin_picture_path(
:id => picture,
:query => params[:query],
:page => params[:page],
:tagged_with => params[:tagged_with],
:size => params[:size],
:filter => params[:filter]
),
{
:title => _t('Delete image')
}
) -%>
<% end %>
<% permitted_to?(:edit, :alchemy_admin_pictures) do %>
<%= link_to_overlay_window(
"",
alchemy.edit_admin_picture_path(
:id => picture,
:query => params[:query],
:page => params[:page],
:tagged_with => params[:tagged_with],
:size => params[:size],
:filter => params[:filter]
),
{
:title => _t('Edit image'),
:size => "400x180"
},
{
:title => _t('Edit image')
}
) -%>
<% end %>
<% permitted_to?(:info, :alchemy_admin_pictures) do %>
<%= link_to_overlay_window(
"",
alchemy.info_admin_picture_path(
:id => picture,
:query => params[:query],
:page => params[:page],
:tagged_with => params[:tagged_with],
:size => params[:size],
:filter => params[:filter]
),
{
:title => _t('Picture infos'),
:size => "400x300"
},
{
:title => _t('Show picture infos')
}
) -%>
<% end %>
<%= image_tag("alchemy/image_loader.gif", :alt => '') %>
<%= link_to(
image_tag(
alchemy.thumbnail_path(:id => picture, :size => @size, :sh => picture.security_token(:size => @size)),
:alt => picture.name,
:title => _t('zoom_image'),
:onload => "Alchemy.fadeImage(this, '#picture_#{picture.id} .image_spinner');",
:style => "display: none;"
),
'#',
:onclick => "Alchemy.zoomImage('#{show_in_window_admin_picture_path(:id => picture.id, :sh => picture.security_token)}', '#{picture.name}', #{picture.image_file_width || 320}, #{picture.image_file_height || 240})",
:class => 'thumbnail_background',
:id => 'show_in_window'
) %>
<%= picture.name %>