check if you are friends before displaying group list

This commit is contained in:
Raphael 2010-08-27 10:22:58 -07:00
parent 831609ad15
commit 39380c3c06

View file

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