removed hardcoded profile pic

This commit is contained in:
Beatrice Olivera 2018-08-31 16:09:45 +01:00
parent d484769f40
commit 2bd9274706
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ end
<% end %> <% end %>
<div class="container"> <div class="container">
<div class="modal-container"> <div class="modal-container">
<img src="https://kitt.lewagon.com/placeholder/users/ssaunier" alt="" class="profile img-circle" width=150> <% if contact.photo.url.nil? %>
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png" class="avatar profile dropdown-toggle img-circle" width=150>
<% else %>
<%= cl_image_tag contact.photo, class: "profile avatar dropdown-toggle img-circle", width:150%>
<% end %>
<div class="modal-text"> <div class="modal-text">
<h4 class="modal-title" id="myModalLabel">Calling</h4> <h4 class="modal-title" id="myModalLabel">Calling</h4>
<h4> <h4>