Sha256: bf690cf4c78fc74b9e568ba6fd2096759afb38084139062eac06944a0f879c6b

Contents?: true

Size: 1011 Bytes

Versions: 17

Compression:

Stored size: 1011 Bytes

Contents

<%- max_image_count = options[:maximum_amount_of_images] || options[:max_images] -%>
<div class="content_editor picture_gallery_editor">
  <label><%= _t("picture_gallery_editor.#{element.name}", :default => _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

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb