Take out remove friend button on stranger, there should be an add friend

This commit is contained in:
Raphael 2010-08-27 10:26:03 -07:00
parent e1d6c9ce03
commit f309299e22

View file

@ -5,7 +5,7 @@
%h1
= @person.real_name
- unless @person.id == current_user.person.id
- if @person != current_user.person && current_user.friends.include?(@person)
.right
= link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete, :class => "button"