Writing "Already friends" instead of proposing to add people that we already added successfully or accepted in the search results.

This commit is contained in:
Arnaud Delcasse 2010-09-20 03:26:19 +08:00 committed by Raphael Sofaer
parent b097f93bf5
commit eeb132d825

View file

@ -2,7 +2,6 @@
-# licensed under the Affero General Public License version 3. See
-# the COPYRIGHT file.
%li.message{:id => person.id}
= person_image_link(person)
@ -17,6 +16,8 @@
.right{ :style => "display:inline;top:0;" }
- if person.id == current_user.person.id
thats you!
- elsif current_user.friends.include?(person)
Already friends
- elsif current_user.pending_requests.find_by_person_id(person.id)
= link_to "pending request", aspects_manage_path
- else