Sha256: 340649d49e45ec4512c76980f97a4efd5bffb1d993194ce9e841bd24ea3af318

Contents?: true

Size: 936 Bytes

Versions: 9

Compression:

Stored size: 936 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 => 'alchemy/admin/elements/add_content',
			:locals => {
				:element => element,
				:essence_type => "Alchemy::EssencePicture",
				:link_text => t("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

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.1.1 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.beta6 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.1.beta5 app/views/alchemy/admin/elements/_picture_editor.html.erb