Sha256: b061b5f76267ef4de26d6725f8841e4aa753db11cc45641c847328e195b0ba99

Contents?: true

Size: 978 Bytes

Versions: 14

Compression:

Stored size: 978 Bytes

Contents

<% sortable = pictures.size > 1 %>
<%- 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, {sortable: sortable}.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
        }
      ) %>
    <%- end -%>
  </div>
</div>
<%- if sortable -%>
<script type="text/javascript" charset="utf-8">
  Alchemy.SortableContents('#element_<%= element.id %>_contents', '<%= form_authenticity_token %>');
</script>
<%- end -%>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.1.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.1.0.rc1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.1.0.beta app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb