Sha256: 53c9054c98e85d303b3d529bdcc03ee1316517c7eee66d5e1d3ff8f8ef1bc111

Contents?: true

Size: 919 Bytes

Versions: 20

Compression:

Stored size: 919 Bytes

Contents

<%- max_image_count = options[:maximum_amount_of_images] || options[:max_images] -%>
<div class="picture_gallery_images" id="element_<%= element.id %>_contents">
	<%- for picture_content in picture_contents do -%>
		<%= render_essence_editor(picture_content, {
			:dragable => (picture_contents.size > 1)
		}.merge(options)) %>
	<%- end -%>
	<%- if max_image_count.blank? || picture_contents.length < max_image_count.to_i -%>
		<%= render(
			:partial => 'admin/elements/add_content',
			:locals => {
				:element => element,
				:essence_type => "EssencePicture",
				:link_text => _("add_image_to_element"),
				:options => options,
				:dragable => (picture_contents.size > 1)
			}
		) %>
	<%- end -%>
</div>
<%- if picture_contents.size > 1 -%>
<script type="text/javascript" charset="utf-8">
	Alchemy.SortableContents('#element_<%= element.id %>_contents', '<%= form_authenticity_token %>');
</script>
<%- end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.6.1 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.5 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.4 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.3.1 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.beta1 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.3 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.2 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.1 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc6 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc5 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc4 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc3 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc2 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.rc1 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.pre5 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.pre4 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.pre3 app/views/admin/elements/_picture_editor.html.erb
alchemy_cms-2.0.pre2 app/views/admin/elements/_picture_editor.html.erb