negos_app/app/views/public/shared/_sub_menu.html.haml
2019-05-23 20:59:03 +02:00

28 lines
1.2 KiB
Plaintext

-if @needs or @products or @product
.sub_menu_boutique
.center
-if current_customer.account_validated?
-if @reseaux and @reseaux.needs_enabled
=link_to "Besoins exclusifs", public_needs_path(:type => 1), :class => ("active" if @needs and params[:type].to_i == 1)
-if @reseaux and @reseaux.centrale_enabled
=link_to "Portail local", public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i, :type => 2), :class => ("active" if (@products or @product) and params[:type] == "2")
-if session[:reseaux_id].to_i > 0
-if @reseaux and @reseaux.offres_enabled
=link_to "Offres exclusives", public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i), :class => ("active" if ((@products or @product) and params[:type] == "1"))
.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