negos_app/app/views/public/shared/_sub_menu.html.haml
2018-10-17 16:26:39 +02:00

24 lines
980 B
Plaintext

-if @needs or @products or @product
.sub_menu_boutique
.center
-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'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)
.clear
-if @reseaux_chief_layout
.sub_menu_boutique
.center
=link_to "Vue de mon réseau", public_reseaux_path(@reseaux) #, :class => ("active" if @needs)
=link_to "Membres", public_reseaux_customers_path(@reseaux)
=#link_to "Besoins", public_reseaux_path(@reseaux)
=link_to "Commandes", public_reseaux_product_orders_path(@reseaux)
.clear