You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<%= tag.div class: "node#{' loaded' if open_node_ids.include?(node.id)}#{' current' if node.id == current_node_id}",
|
|
|
id: dom_id(node),
|
|
|
data: {
|
|
|
id: node.id
|
|
|
} do %>
|
|
|
|
|
|
<%= tag.div class: "node-row #{node.category}#{' closed' unless open_node_ids.include?(node.id)}",
|
|
|
style: "--level: #{node.depth}" do %>
|
|
|
<%= spacer_node node %>
|
|
|
<%= toggle_node node %>
|
|
|
<%= drawer_node_link node %>
|
|
|
<% end %>
|
|
|
|
|
|
<%= render node.children.ordered if open_node_ids.include?(node.id) %>
|
|
|
|
|
|
<% end %>
|
|
|
|