Sha256: e3cf1c4045651e3974d210e6c1351849162652b668904d831cf34ce6b77553e0

Contents?: true

Size: 812 Bytes

Versions: 38

Compression:

Stored size: 812 Bytes

Contents

<%%- cache(<%= @element_name %>) do -%>
  <%%= element_view_for(<%= @element_name %>) do |el| -%>
  <%- @contents.each do |content| -%>
    <%- if @contents.length > 1 -%>
    <div class="<%= content["name"] %>">
      <%%= el.render :<%= content["name"] %> %>
    </div>
    <%- else -%>
    <%%= el.render :<%= content["name"] %> %>
    <%- end -%>
  <%- end -%>
  <%- @ingredients.each do |ingredient| -%>
    <%- if @ingredients.length > 1 -%>
    <div class="<%= ingredient["role"] %>">
      <%%= el.render(:<%= ingredient["role"] %>) %>
    </div>
    <%- else -%>
    <%%= el.render(:<%= ingredient["role"] %>) %>
    <%- end -%>
  <%- end -%>
  <%- if @element['nestable_elements'].present? -%>
    <%%= render <%= @element_name %>.nested_elements.available %>
  <%- end -%>
  <%%- end -%>
<%%- end -%>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.9 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.8 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.7 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.6 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.5 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.14 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.4 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.13 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.3 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.2 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.1.1 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.12 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.11 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.10 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.9 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.8 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.7 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.6 lib/generators/alchemy/elements/templates/view.html.erb
alchemy_cms-6.0.5 lib/generators/alchemy/elements/templates/view.html.erb