Caroline Girard 556e66ba66 qit
2018-09-04 09:22:47 +02:00

54 lines
1.9 KiB
Plaintext

=render :partial => "public/my_account/menu"
.center{:style => "position:relative"}
%h1
=qit("account-binary-h1", "Réseau binaire")
=qit "account-binary-p1" do
%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_annonce_account.binary_active_count == 0
=qit("account-binary-p2", "Il n'y a pas encored'inscrits faisant parti de vos affiliés directs dans votre binaire")
-elsif current_annonce_account.binary_active_count == 1
=qit("account-binary-p3", "Il y a actuellement
un inscrit faisant parti de vos affiliés directs dans votre binaire")
-else
=qit("account-binary-p4", "Il y a actuellement")
=current_annonce_account.binary_active_count
=qit("account-binary-p5", "inscrits faisant parti de vos affiliés directs dans votre binaire")
%p
=render :partial => "public/my_account/binary_form"
.left_binary
=current_annonce_account.left_binary_points
points
-if left = AnnonceAccount.where(:binary_parent_id => current_annonce_account.id, :binary_side => 1).first
%br
=left.binary_child_ids.size + 1
=left.binary_child_ids.size > 0 ? "affiliés" : "affilié"
.right_binary
=current_annonce_account.right_binary_points
points
-if right = AnnonceAccount.where(:binary_parent_id => current_annonce_account.id, :binary_side => 2).first
%br
=right.binary_child_ids.size + 1
=right.binary_child_ids.size > 0 ? "affiliés" : "affilié"
-@binary_table = AnnonceAccount.get_tree(@parrain)
-@nbr_levels = 4
=render :partial => "public/annonce_accounts/index_binary"