%ul.nav.nav-tabs
  %li{:class => ("active" if params[:controller] == "public/my_account" and params[:action] == "index")}= link_to i(:home), public_my_account_path
  %li{:class => ("active" if params[:controller] == "public/my_account" and params[:action] == "edit_infos")}= link_to " Profil", public_edit_infos_path
  %li{:class => ("active" if params[:controller] == "public/credits" and params[:action] == "index")}= link_to "Mes crédits", public_credits_path
  %li{:class => ("active" if params[:controller] == "public/orders" and params[:action] == "bills")}=link_to "Mes factures", bills_public_orders_path
  %li{:class => "am "+("active" if params[:controller] == "public/annonce_messages").to_s}
  
    -nbr = current_customer.inbox_messages.where("readed is null").count
    -if nbr == 0
      =link_to "Messages privés", public_annonce_messages_path
    -else
      =link_to raw("Messages privés <span class='badge'>#{nbr}</span>"), public_annonce_messages_path
  
  %li{:class => ("active" if params[:controller] == "public/my_account" and params[:action] == "filleuls")}= link_to "Mes affiliés", public_filleuls_path
   
  -if current_customer.credits_boughts(Date.today) > 0
    =#%li{:class => ("active" if params[:controller] == "public/my_account" and params[:action] == "binary")}= link_to "Réseau binaire", public_binary_path
    
    %li{:class => ("active" if (params[:controller] == "public/commissions" and params[:action] == "index") or params[:controller] == "public/customer_ribs")}= link_to "Mes commissions / virements", public_commissions_path
   