Default to keeping user's email addresses private.

This commit is contained in:
James Mason 2018-09-24 16:25:54 -07:00 committed by Henne Vogelsang
parent d61b4253df
commit ed6b2d8c93
7 changed files with 31 additions and 17 deletions

View file

@ -25,10 +25,7 @@
%ul.nav.navbar-nav.navbar-right
%li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown", href: '#', id: "current-user-detail"}
- if not current_user.name.blank?
#{current_user.name}
-else
#{current_user.email}
= current_user.name
= image_tag(current_user.gravatar_url(size: '18'), title: "Yo #{current_user.name}!", alt: '')
%b.caret
%ul.dropdown-menu