Sha256: 323caa870d806850ec0f67cdd6bc15e80bb53fab94b46e8467ab63236e96b84a

Contents?: true

Size: 1.3 KB

Versions: 14

Compression:

Stored size: 1.3 KB

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.6.1 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.5 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.4 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.3.1 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.1.beta1 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.3 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.2 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.1 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.rc6 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.rc5 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.rc4 app/views/admin/pictures/_picture.html.erb
alchemy_cms-2.0.rc3 app/views/admin/pictures/_picture.html.erb