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)
22 lines
504 B
ERB
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 %>
|