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:
parent
b097f93bf5
commit
eeb132d825
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue