-if @current_p_customer_sheet.price_line_block.price_lines.count > 0
  =link_to ic(:"shopping-cart")+" #{qit("my-basket", "Mon panier")} (#{@current_p_customer_sheet.price_line_block.price_lines.count})", cart_public_p_orders_path
-else
  =link_to ic(:"shopping-cart")+" #{qit("my-basket", "Mon panier")}", cart_public_p_orders_path
%span="-"
-if @current_p_customer
  =link_to ic(:"user")+" #{qit("my-account", "Mon compte")}", public_my_account_path
  %span="-"
  =link_to ic(:"power-off")+" #{qit("log-out", "Déconnexion")}", logout_public_p_customer_auths_path()

-else
  =link_to ic(:"user")+" #{qit("log-in", "Connexion")}", new_public_p_customer_auth_path


-if true #current_admin and current_admin.id == 1
  ="-"
  -I18n.available_locales.each do |locale|
    -next if I18n.locale == locale
    -lang_site = LangSite.where(:slug => locale.to_s)

    -if @menu_item
      -menu_item_lang = @menu_item.menu_item_langs.where(lang_site: lang_site).first
      -if menu_item_lang and menu_item_lang.enabled and menu_item_lang.visible
        / =link_to image_tag("/countries/#{locale}.png"), menu_item_path(:url =>  menu_item_lang.permalink, :lang => locale), :class => ("active" if menu_item_lang.lang_site == @lang)
      -else
        / =link_to image_tag("/countries/#{locale}.png"), "/#{menu_item_lang.lang_site.slug}/index.html", :class => ("active" if menu_item_lang.lang_site == @lang)
    -elsif @article
      -lang_article = @article.lang_articles.where(lang_site: lang_site).first
      -if lang_article&.enabled
        / =link_to image_tag("/countries/#{locale}.png"), article_path(:slug => lang_article.slug, :lang => lang_article.lang_site.slug), :class => ("active" if lang_article.lang_site == @lang)
      -else
        / =link_to image_tag("/countries/#{locale}.png"), "/#{lang_article.lang_site.slug}/index.html", :class => ("active" if lang_article.lang_site == @lang)
    -else
      / =link_to image_tag("/countries/#{locale}.png"), lang: locale
