diff --git a/app/views/public/shared/_menu.html.haml b/app/views/public/shared/_menu.html.haml index eb545bf..c423ece 100755 --- a/app/views/public/shared/_menu.html.haml +++ b/app/views/public/shared/_menu.html.haml @@ -21,11 +21,13 @@ %li=link_to ic(:comment)+" Nous contacter" + (unread_message > 0 ? " (#{unread_message})" : ""), public_contact_messages_path, :class => "btn" %li=link_to ic(:user)+" Mon compte", public_my_account_path, :class => "btn" - -if !@reseaux - -if current_customer.own_reseauxes.count > 0 - %li=link_to ic(:users)+" Mon réseau", public_reseauxes_path, :class => "btn" - - %li=link_to ic(:envelope)+" Conversations", public_customer_messages_path, :class => "btn" + + + -if current_customer.own_reseauxes.count > 0 + %li=link_to ic(:users)+" Mon réseau", public_reseauxes_path, :class => "btn" + + %li=link_to ic(:envelope)+" Conversations", public_customer_messages_path, :class => "btn" + %li=link_to "Se déconnecter", logout_public_customers_auths_path, :class => "btn" diff --git a/app/views/public/shared/_sub_menu.html.haml b/app/views/public/shared/_sub_menu.html.haml index c287ecf..0e79a79 100644 --- a/app/views/public/shared/_sub_menu.html.haml +++ b/app/views/public/shared/_sub_menu.html.haml @@ -4,7 +4,7 @@ -if current_customer.account_validated? =link_to "Besoins spécifiques", public_needs_path(:type => 1), :class => ("active" if @needs and params[:type].to_i == 1) - =link_to "Centrale d'achat", public_needs_path(:type => 2), :class => ("active" if @needs and params[:type].to_i == 2) + =link_to "Centrale d'achats", public_needs_path(:type => 2), :class => ("active" if @needs and params[:type].to_i == 2) -if session[:reseaux_id].to_i > 0 =link_to "Offres exclusives", public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i), :class => ("active" if @products or @product)