Sha256: 6a24547d3d58f2e38f3a176a79ed5ac286e3896e416920844e512af8c6b8c2b7

Contents?: true

Size: 1.14 KB

Versions: 16

Compression:

Stored size: 1.14 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

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc13 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/elements/_picture_editor.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/elements/_picture_editor.html.erb