diff --git a/app/helpers/aspects_helper.rb b/app/helpers/aspects_helper.rb index ad3b9ab48..0642c27d7 100644 --- a/app/helpers/aspects_helper.rb +++ b/app/helpers/aspects_helper.rb @@ -30,5 +30,10 @@ module AspectsHelper remove_from_aspect_button(aspect_id, contact.person.id) end end + + def contact_link(contact) + person = contact.person + link_to person.name, person + end end diff --git a/app/views/shared/_contact_list.html.haml b/app/views/shared/_contact_list.html.haml index c86b007a5..bdaffb741 100644 --- a/app/views/shared/_contact_list.html.haml +++ b/app/views/shared/_contact_list.html.haml @@ -9,7 +9,7 @@ - for contact in contacts %li %span.name - = link_to contact.person.name, contact.person + = contact_link contact .right = aspect_membership_button(aspect_id, contact)