lib/generators/alchemy/elements/templates/view.html.haml in alchemy_cms-5.3.8 vs lib/generators/alchemy/elements/templates/view.html.haml in alchemy_cms-6.0.0.b1
- old
+ new
@@ -6,8 +6,17 @@
= el.render :<%= content["name"] %>
<%- else -%>
= el.render :<%= content["name"] %>
<%- end -%>
<%- end -%>
+ <%- @ingredients.each do |ingredient| -%>
+ <%- if @ingredients.length > 1 -%>
+ .<%= 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 -%>