friend finder basic styling

This commit is contained in:
zhitomirskiyi 2011-01-25 15:23:54 -08:00
parent cf45f31712
commit e56ba84094

View file

@ -5,22 +5,21 @@
- content_for :head do - content_for :head do
= include_javascripts :aspects = include_javascripts :aspects
%h3 .span-24.last
facebook friend finder %h3
Facebook friend finder
.contact_list .span-10.prepend-7
.contact_list
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts') = search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
%ul %ul
- for friend in @friends.values - for friend in @friends.values
%li %li
%h4.name
= link_to friend[:name], '#'
.right .right
-if friend[:contact] && !friend[:contact].pending -if friend[:contact] && !friend[:contact].pending
= t('.already_connected') = t('people.person.already_connected')
- elsif (friend[:contact] && friend[:contact].pending) - elsif (friend[:contact] && friend[:contact].pending)
= t('.pending_request') = t('people.person.pending_request')
- elsif friend[:person] - elsif friend[:person]
= link_to t('people.show.start_sharing'), = link_to t('people.show.start_sharing'),
{:controller => "people", {:controller => "people",
@ -28,3 +27,13 @@
:id => friend[:person].id}, :id => friend[:person].id},
:class => 'button', :class => 'button',
:rel => 'facebox' :rel => 'facebox'
- if friend[:person]
= person_image_link(friend[:person])
%h4.name
- if friend[:person]
= link_to friend[:name], person_path(friend[:person])
- else
= friend[:name]