.hide-on-large-only - if user_signed_in? %li %span.black-text =link_to user_path(current_user), class: "menu-a-drop" do .circle %img{:src => "https://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(current_user.email)}?d=404&s=50",onerror:"this.style.display='none'"} ="#{current_user.firstname.first.upcase}" = "#{current_user.firstname}" %li =link_to user_path(current_user), class: "menu-a-drop" do =t('layout.menu.profile') %li - if user_masquerade? = link_to t('layout.menu.reverse_masquerade'), back_masquerade_path(current_user) -else =link_to t('layout.menu.disconnect'), destroy_user_session_path, :method => :delete -else %li = link_to t('layout.menu.connect'), new_user_session_path, :class =>"waves-effect waves-light btn"