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