Sha256: 5357970ef6a71ce3bdab4da43b3798426df8e7a03e53c9e7af40688967d100f4

Contents?: true

Size: 570 Bytes

Versions: 21

Compression:

Stored size: 570 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.4.0 lib/rails/generators/alchemy/elements/templates/view.html.haml