negos_app/app/views/public/customers/_index_binary.haml
2016-02-16 21:09:48 +01:00

27 lines
953 B
Plaintext
Executable File

%table{:style => "min-width:100%"}
%tr
%td
-if @parrain != current_customer
=render :partial => "public/customers/customer_binary", :object => current_customer, :locals => {:inline_b => true}
%center="..."
-ancestors = []
-ancest = @parrain.binary_parent
-while ancest and ancest != current_customer
- ancestors << ancest
-ancest = ancest.binary_parent
-ancestors.reverse.each do |ancest|
=render :partial => "public/customers/customer_binary", :object => ancest, :locals => {:inline_b => true}
%center="..."
=render :partial => "public/customers/customer_binary", :object => @parrain, :locals => {:inline_b => true}
-if @i_table != @nbr_levels
.binary_line
.line
=render :partial => "public/customers/binary_table", :locals => {:i_table => 0, :liste => ""}