16 lines
355 B
Plaintext
16 lines
355 B
Plaintext
%h1 Children
|
|
|
|
- @children.each do |child|
|
|
%ul.index
|
|
%li
|
|
= link_to child.name, child_path(child)
|
|
= 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)
|