diff --git a/app/views/public/my_account/index.html.haml b/app/views/public/my_account/index.html.haml index 86d9608..b7d29d2 100755 --- a/app/views/public/my_account/index.html.haml +++ b/app/views/public/my_account/index.html.haml @@ -71,7 +71,7 @@ =link_to i(:envelope), new_public_customer_message_path(:thing_type => "Customer", :thing_id => reseaux.chef_reseau.id) - -current_customer.reseauxes.where(:parent_id => reseaux.id).each do |reseaux| + -Reseaux.where(:parent_id => reseaux.id).order(:name).each do |reseaux| %tr %td   diff --git a/app/views/public/reseauxes/show.html.haml b/app/views/public/reseauxes/show.html.haml index ef46d0c..49cf655 100644 --- a/app/views/public/reseauxes/show.html.haml +++ b/app/views/public/reseauxes/show.html.haml @@ -103,7 +103,7 @@ %div{:style => "position:absolute;top:-30px;right:10px;"} Gains : =number_to_currency gain + -if @reseaux.id != 2 + %h3 Les besoins de mon réseau - %h3 Les besoins de mon réseau - - =render collection: @reseaux.needs, partial: 'public/needs/need_item', as: :need + =render collection: @reseaux.needs, partial: 'public/needs/need_item', as: :need