Info on a node
<% if @node %>
Name: <%= link_to @node.typeifiedname, taxonomite_path(@node) %>
Type: <%= @node.entity_type %>
Description: <%= @node.description %>
Population: <%= @node.aggregate_leaves("countme") %>
<% if @node.parent %>
Parent:
- <%= link_to @node.parent.name, taxonomite_path(@node.parent) %>
<% end %>
<% if @node.has_children? %>
Children:
<%= render partial: 'node', collection: @node.children, as: :node %>
<% end %>
<% else %>
Unable to find a Taxon.
<% end %>
- <%= link_to "Edit this node", edit_taxonomite_path(@node) %>