Files
orbit-basic/app/views/admin/items/_node_and_children.html.erb
T
chris 856898016b New UI changes(tags, categories, authorisations, module index…)
To run:
  - ruby lib/remove_old_tags.rb DB_NAME
  - rake new_ui:migrate_tags
  - rake new_ui:migrate_categories['APP_KEY,''MODEL_NAME'] (check new_ui.rake for more details)
2013-07-02 16:46:44 +08:00

22 lines
504 B
ERB

<% 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 %>