Sha256: 989cd224da4b5125d4c67749d3478285102e887d7f2c763cec05bfb60477728c

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

<h2> Info on a node</h2>
<% if @node %>
    <ul>

        <p>Name:        <%= link_to @node.typeifiedname, taxonomite_path(@node) %></p>
        <p>Type:        <%= @node.entity_type %></p>
        <p>Description: <%= @node.description %></p>
        <p>Population:  <%= @node.aggregate_leaves("countme") %>

        <% if @node.parent %>
        <h3>Parent:</h3>
            <li><%= link_to @node.parent.name, taxonomite_path(@node.parent) %></li>
        <% end %>

        <% if @node.has_children? %>
            <h3>Children:</h3>
            <%= render partial: 'node', collection: @node.children, as: :node %>
        <% end %>

    </ul>
<% else %>
    <p>Unable to find a Taxon.</p>
<% end %>

<br/>
  <ul>
  <li><%= link_to "Edit this node", edit_taxonomite_path(@node) %></li>
  </ul>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taxonomite-0.1.0 spec/dummy/app/views/taxonomite/show.html.erb