Sha256: 1598fe8608ab00e64683e8186b362cd2ad6d5cc812cfcda33acb6b4ace5e937d
Contents?: true
Size: 1.07 KB
Versions: 12
Compression:
Stored size: 1.07 KB
Contents
<%- max_image_count = options[:maximum_amount_of_images] || options[:max_images] -%> <div class="content_editor"> <label><%= t("picture_gallery_editor.#{element.name}", :default => t('picture_gallery_editor')) %></label> <div class="picture_gallery_images" id="element_<%= element.id %>_contents"> <%- picture_contents.each do |picture_content| -%> <%= 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> </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
12 entries across 12 versions & 1 rubygems