.linkable - person.links.each do |link| .person.cadre - target = link[:person] - if target.instance_of? CustomerVault::Individual = render partial: 'customer_vault/individuals/list_details', locals: {i: target, person: person, link: link[:origin]} - if target.instance_of? CustomerVault::Corporation = render partial: 'customer_vault/corporations/list_details', locals: {c: target, person: person, link: link[:origin]} .center = link_to 'New link', customer_vault.new_individual_link_path(person), class: "btn btn-success", id: 'new-link'