Sha256: 1c9c3aba6a21d1e9647777fcac2093e4584869a28056ea7fe080c55a502fd4ac

Contents?: true

Size: 1.34 KB

Versions: 19

Compression:

Stored size: 1.34 KB

Contents

<div class="picture_thumbnail <%= @size %>" id="picture_<%= picture.id %>" name="<%= picture.name %>">
	<%- permitted_to?(:destroy, :alchemy_admin_pictures) do -%>
	<span class="picture_tool_delete">
		<%= link_to_confirmation_window(
			"",
			t("confirm_to_delete_image_from_server"),
			alchemy.admin_picture_path(
				:id => picture,
				:query => params[:query],
				:page => params[:page],
				:per_page => params[:per_page]
			),
			{
				:title => t('Delete image')
			}
		) -%>
	</span>
	<%- end -%>
	<div class="image_spinner spinner">
		<%= image_tag("alchemy/image_loader.gif", :alt => '') %>
	</div>
	<%= link_to_function(
		image_tag(
			alchemy.thumbnail_path(:id => picture, :size => @size),
			:alt => picture.name,
			:title => t('zoom_image'),
			:onload => "Alchemy.fadeImage(this, '#picture_#{picture.id} .image_spinner');",
			:style => "display: none;"
		),
		"Alchemy.zoomImage('#{show_in_window_admin_picture_path(picture.id)}', '#{picture.name}', #{picture.image_width || 320}, #{picture.image_height || 240})",
		:class => 'thumbnail_background'
	) %>
	<span class="picture_name<%= ' rename' if permitted_to?(:edit, :alchemy_admin_pictures) -%>" title="<%= permitted_to?(:edit, :alchemy_admin_pictures) ? picture.name + ' (' + t('Click to rename') + ')' : picture.name %>" id="image_picture_<%= picture.id %>_name"><%= picture.name %></span>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.11 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.9.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.9 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.8.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.8 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.7 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.6 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.5 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.4 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/pictures/_picture.html.erb