This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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 %>