Sha256: 3bbed814ffcc4c0d62b06d80a32fd3f67f67758e8404fd3714a9f18d41d12638

Contents?: true

Size: 696 Bytes

Versions: 21

Compression:

Stored size: 696 Bytes

Contents

<%- if @element['contents'].present? -%>
<%%= element_view_for(element) do |el| -%>
<%- if @element["picture_gallery"] -%>
  <div class="<%= @element_name %>_images">
    <%%- element.contents.gallery_pictures.each do |image| -%>
    <div class="<%= @element_name %>_image <%%= image.essence.css_class %>">
      <%%= render_essence_view(image, :image_size => "160x120") %>
    </div>
    <%%- end -%>
  </div>
<%- end -%>
<%- @contents.each do |content| -%>
  <%- if @contents.length > 1 -%>
  <div class="<%= content["name"] %>">
    <%%= el.render :<%= content["name"] %> %>
  </div>
  <%- else -%>
  <%%= el.render :<%= content["name"] %> %>
  <%- end -%>
<%- end -%>
<%%- end -%>
<%- end -%>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.6.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.7.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.7.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.6.2.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.6.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.6.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.6.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.6.0.rc5 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.3.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.2.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.2.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.0.rc3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.0.b9 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.4.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.0.b5 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.5.0.b2 lib/rails/generators/alchemy/elements/templates/view.html.erb