diff --git a/app/views/public/shared/_menu.html.haml b/app/views/public/shared/_menu.html.haml index a1d62ac..c1d0f57 100755 --- a/app/views/public/shared/_menu.html.haml +++ b/app/views/public/shared/_menu.html.haml @@ -12,9 +12,9 @@ %li=link_to ic(:star)+" Besoins", public_needs_path, :class => "btn" - unread_message = ContactMessage.where(contact_id: current_customer.id, read_by_customer: false).count %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 - %li=link_to ic(:user)+" Mon compte", public_my_account_path, :class => "btn" - -if current_customer.own_reseauxes.count > 0 %li=link_to ic(:users)+" Mon réseau", public_reseauxes_path, :class => "btn"