1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/people/_rel_root.html.erb

14 lines
400 B
Text
Raw Normal View History

2020-04-08 04:50:55 -04:00
<% if Relationship.where(person: person, parent_rel: nil).empty? %>
<%= translate '.no_relations' %>
<% else %>
<ul>
<% Relationship.where(person: person,
parent_rel: nil).each do |relationship| %>
<li>
<%= render partial: 'people/rel_hierarchy',
locals: { relationship: relationship } %>
</li>
<% end %>
</ul>
<% end %>