=render :partial => "public/my_account/menu" .center{:style => "position:relative"} %h1 Réseau binaire %p Vous touchez désormais des commissions sur tous vos affiliés directs et indirects sur 10 générations, il n'y a plus de notions de branche forte où branche faible. Vous touchez donc des commissions sur chacune des ventes de ces affiliés, en instantané. %p Vous pouvez accéder à la liste de vos affiliés directs et indirectes par la page "mes affiliés" -if 1 == 2 %p -if current_product_customer.binary_active_count == 0 Il n'y a pas encored'inscrits faisant parti de vos affiliés directs dans votre binaire -elsif current_product_customer.binary_active_count == 1 Il y a actuellement un inscrit faisant parti de vos affiliés directs dans votre binaire -else Il y a actuellement =current_product_customer.binary_active_count inscrits faisant parti de vos affiliés directs dans votre binaire %p =render :partial => "public/my_account/binary_form" .left_binary =current_product_customer.left_binary_points points -if left = ProductCustomer.where(:binary_parent_id => current_product_customer.id, :binary_side => 1).first %br =left.binary_child_ids.size + 1 =left.binary_child_ids.size > 0 ? "affiliés" : "affilié" .right_binary =current_product_customer.right_binary_points points -if right = ProductCustomer.where(:binary_parent_id => current_product_customer.id, :binary_side => 2).first %br =right.binary_child_ids.size + 1 =right.binary_child_ids.size > 0 ? "affiliés" : "affilié" -@binary_table = ProductCustomer.get_tree(@parrain) -@nbr_levels = 4 =render :partial => "public/product_customers/index_binary"