This commit is contained in:
Nicolas Bally 2018-10-17 16:26:39 +02:00
parent 4953ff7ccb
commit dd935557e1
2 changed files with 8 additions and 6 deletions

View File

@ -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"

View File

@ -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)