Sha256: c39c15fa738a5c32d44cd4a5243b56145e288701ae0e333039cd7c0cb22b2977

Contents?: true

Size: 1004 Bytes

Versions: 22

Compression:

Stored size: 1004 Bytes

Contents

<%- max_image_count = options[:maximum_amount_of_images] || options[:max_images] -%>
<div class="content_editor picture_gallery_editor">
  <label><%= Alchemy.t("picture_gallery_editor.#{element.name}", default: Alchemy.t(:picture_gallery_editor)) %></label>
  <div class="picture_gallery_images" id="element_<%= element.id %>_contents">
    <%- pictures.each do |picture| -%>
      <%= render_essence_editor(picture, {dragable: (pictures.size > 1)}.merge(options)) %>
    <%- end -%>
    <%- if max_image_count.blank? || pictures.length < max_image_count.to_i -%>
      <%= render(
        partial: 'alchemy/admin/elements/add_picture',
        locals: {
          element: element,
          options: options,
          dragable: (pictures.size > 1)
        }
      ) %>
    <%- end -%>
  </div>
</div>
<%- if pictures.size > 1 -%>
<script type="text/javascript" charset="utf-8">
  Alchemy.SortableContents('#element_<%= element.id %>_contents', '<%= form_authenticity_token %>');
</script>
<%- end -%>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.5.0.rc1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.3.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb