-if current_annonce_account -test_fav = current_annonce_account.annonce_favs.where(:id => annonce.id).count > 0 .fav#fav{:id => annonce.id, :style => "", :class => ("active" if test_fav) , :onclick => "$.ajax('"+new_public_annonce_account_fav_path(:annonce_id => annonce.id)+"');return false;"} -if test_fav =i(:"star") -else =i(:"star-o")