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

