Sha256: 1bce397bb6fee258236f2fffd3e513e2b752196c07e8ec3cc45b9e6dffb26671

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

<%%= 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 -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_cms-2.4.rc4 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.4.rc2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-2.4.rc1 lib/rails/generators/alchemy/elements/templates/view.html.erb