Show the right contacts
This commit is contained in:
parent
122f182a4c
commit
f35f0212dd
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue