Show the right contacts

This commit is contained in:
Raphael 2011-01-19 15:54:49 -08:00
parent 122f182a4c
commit f35f0212dd
2 changed files with 3 additions and 3 deletions

View file

@ -1,12 +1,12 @@
%li{:data=>{:guid=>aspect.id}, :class => ("dull" if contacts.length == 0)}
.right
%b
= link_to t('contacts', :count => aspect.contacts.count), edit_aspect_path(aspect), :rel => 'facebox'
= link_to t('contacts', :count => contacts.count), edit_aspect_path(aspect), :rel => 'facebox'
%b
= aspect.name
%br
- if aspect.contacts.length > 0
.contacts
- for contact in aspect.contacts[0..16]
- for contact in contacts[0..16]
= person_image_link(contact.person)

View file

@ -15,4 +15,4 @@
%ul
- for aspect in aspects
= render 'aspects/aspect', :aspect => aspect, :contacts => aspect.contacts
= render 'aspects/aspect', :aspect => aspect, :contacts => aspect.contacts.where(:pending => false)