Sha256: 1f5a902f11b5e0f7120d0da112cc7ff1eaae372e38940539b8101011bdaefc01

Contents?: true

Size: 950 Bytes

Versions: 27

Compression:

Stored size: 950 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, 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['available_contents'] -%>
    <%%- element.contents.where(name: ['<%= @available_contents_names.join("', '") %>']).each do |content| -%>
      <%%= render_essence_view(content) %>
    <%%- end -%>
  <%- end -%>
  <%%- end -%>
<%%- end -%>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
lc_alchemy_cms-3.2.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
lc_alchemy_cms-3.2.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.2.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.2.0.rc1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.2.0.beta lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.0.4 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.rc3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.rc2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.rc1 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta6 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta5 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta4 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.0.3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta3 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta2 lib/rails/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-3.1.0.beta1 lib/rails/generators/alchemy/elements/templates/view.html.erb