fixing person show on stranger

This commit is contained in:
Raphael 2010-08-27 10:24:42 -07:00
parent 39380c3c06
commit e1d6c9ce03

View file

@ -13,7 +13,7 @@
-unless @posts.first.nil?
%li
%i= "last seen: #{how_long_ago(@posts.first)}"
- unless @person == current_user.person || not current_user.friends.include?(@person)
- if @person != current_user.person && current_user.friends.include?(@person)
%li
%i= "friends since: #{how_long_ago(@person)}"
%li