2015-09-18 15:50:52 -05:00
|
|
|
%h1 Children
|
|
|
|
|
|
|
|
- @children.each do |child|
|
2015-10-04 20:27:03 -05:00
|
|
|
%ul.index
|
2015-10-03 19:16:46 -05:00
|
|
|
%li
|
|
|
|
= link_to child.name, child_path(child)
|
2015-10-04 20:27:03 -05:00
|
|
|
= edit_btn(edit_child_path(child))
|
|
|
|
|
|
|
|
- unless child.parents.empty?
|
|
|
|
%li Parents:
|
|
|
|
%ul
|
|
|
|
- child.parents.each do |parent|
|
|
|
|
%li
|
|
|
|
= link_to parent.name, parent_path(parent)
|
|
|
|
= page_link(parent)
|