Info on a node
<% if @node %>
Name: <%= link_to @node.typeifiedname, taxonomite_path(@node) %>
Type: <%= @node.entity_type %>
Population: <%= @node.leaves.size %>
<% if !@node.is_root? %>
Parent:
- <%= link_to @node.parent.name, taxonomite_path(@node.parent) %>
<% end %>
<% if !@node.is_leaf? %>
Children:
<%= render partial: 'node', collection: @node.children, as: :node %>
<% end %>
<% else %>
Unable to find a node.
<% end %>
- <%= link_to "Edit this node", edit_taxonomite_path(@node) %>