Fixed #366: Changed how GreenLight handles LDAP jpegPhoto (GRN-92) (#445)

* Fixed issue with LDAP jpegPhoto

* Update _header.html.erb
This commit is contained in:
farhatahmad
2019-04-11 11:53:32 -04:00
committed by Jesus Federico
parent 822dd27509
commit d39a11059e
4 changed files with 31 additions and 3 deletions

View File

@ -30,7 +30,8 @@
<% if current_user.image.blank? %>
<span class="avatar"><%= current_user.name.first %></span>
<% else %>
<span class="avatar" style="background-image: url(<%= current_user.image %>)"></span>
<span id="user-avatar" class="avatar d-none"><%= current_user.name.first %></span>
<%= image_tag(current_user.image, id: "user-image", class: "avatar") %>
<% end %>
<span class="ml-2 d-none d-lg-block">
<span class="text-default username"><%= current_user.name %></span>