From 157d056708fe99f07bc2974be77062b46a4f1360 Mon Sep 17 00:00:00 2001 From: Beatrice Olivera Date: Fri, 31 Aug 2018 21:32:35 +0100 Subject: [PATCH] used first name and last name for contact details if available --- app/views/pages/_contact.html.erb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/views/pages/_contact.html.erb b/app/views/pages/_contact.html.erb index c841d6c..0c791e5 100644 --- a/app/views/pages/_contact.html.erb +++ b/app/views/pages/_contact.html.erb @@ -6,11 +6,10 @@ <%= cl_image_tag contact.photo, class: "profile avatar dropdown-toggle img-circle", width:65%> <% end %>
- <% if contact.nil? || contact.nil? %> + <% if contact.first_name.nil? || contact.last_name.nil? %>

<%= contact.email %>

<% else %> -

<%= contact.email %>

- +

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

<% end %>

Last call: <%= Time.now %>

@@ -44,12 +43,10 @@

- - <% if contact.nil? || contact.nil? %> + <% if contact.first_name.nil? || contact.last_name.nil? %>

<%= contact.email %>

<% else %> -

<%= contact.email %>

- +

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

<% end %>