<% if contact.photo.url.nil? %> <% else %> <%= cl_image_tag(contact.photo, class: "profile avatar dropdown-toggle img-circle", width:65, transformation: [ { gravity: "face:auto", width: 500, height: 500, radius: "max", crop: "crop" } ])%> <% end %>
<% if contact.first_name.nil? || contact.last_name.nil? %>

<%= contact.email %>

<% else %>

<%= contact.first_name %> <%= contact.last_name %>

<% end %>

Last call: <%= Time.now %>

<%= link_to establish_call_path(contact.id), remote: true, class: "modalTrigger", data: {'user-id': contact.id } do %> <% end %>
<%= link_to connection_path(contact), method: :delete do %> <% end %>