Refactor to aspect partial

This commit is contained in:
Raphael 2010-12-06 15:47:57 -08:00
parent 9891577fa5
commit c034113a7c
2 changed files with 10 additions and 8 deletions

View file

@ -0,0 +1,9 @@
%li
%h4
= link_to aspect, aspect
%span
= t('contacts', :count => contact_count)
- if contact_count > 0
- for person in people
= person_image_link(person)

View file

@ -45,15 +45,8 @@
%ul %ul
- for a_hash in @aspect_hashes - for a_hash in @aspect_hashes
%li = render :partial => 'aspects/aspect', :locals => a_hash
%h4
= link_to a_hash[:aspect], a_hash[:aspect]
%span
= t('contacts', :count=>a_hash[:contact_count])
- if a_hash[:contact_count] > 0
- for person in a_hash[:people]
= person_image_link(person)
.section .section
%h3= t('.invites') %h3= t('.invites')
= render "shared/invitations", :invites => @invites = render "shared/invitations", :invites => @invites