orbit-4-2/app/views/admin/items/_node_and_children.html.erb

22 lines
504 B
Plaintext
Raw Normal View History

<% unless node.root? %>
<li id='<%= node.id %>' class="<%= 'disabled' unless node.is_published %> <%= 'no-nest' if node.class.to_s.eql?('Link') %>" >
<% end %>
<%= render 'node', node: node %>
<% unless node.children.blank? %>
<% unless node.root? %>
<ol>
<% end %>
<% node.children.each do |child| %>
<%= render 'node_and_children', node: child %>
<% end %>
<% unless node.root? %>
</ol>
<% end %>
<% end %>
<% unless node.root? %>
</li>
<% end %>