Sha256: 1a946f1df6b37ec6a852184ab83fa9f84f6b6bc4c3084952088e302c78549c2d

Contents?: true

Size: 911 Bytes

Versions: 26

Compression:

Stored size: 911 Bytes

Contents

<%%- cache(element) do -%>
  <%%= 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, 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 -%>
  <%- if @element['nestable_elements'].present? -%>
    <%% element.nested_elements.available.each do |nested_element| %>
      <%%= render_element(nested_element) %>
    <%% end %>
  <%- end -%>
  <%%- end -%>
<%%- end -%>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.7 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.6 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.1.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.1.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.1.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.5 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.4 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.1.0.rc1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.5 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.1.0.beta lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.4 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.6.2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.0.rc2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-4.0.0.rc1 lib/rails/generators/alchemy/elements/templates/view.html.erb