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