From 3e791a64b64612962c19499e76547abea31e2407 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 7 Aug 2026 21:26:33 -0400 Subject: [PATCH] Update tooltip to link technician name and conditionally display end date based on duration --- app/views/customer_appointments/_tooltip.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/customer_appointments/_tooltip.html.erb b/app/views/customer_appointments/_tooltip.html.erb index b77350a..50e1467 100644 --- a/app/views/customer_appointments/_tooltip.html.erb +++ b/app/views/customer_appointments/_tooltip.html.erb @@ -28,7 +28,7 @@ <%= l(:label_technician, default: "Technician") %> <%= avatar(appointment.user, size: 16) %> - <%= appointment.user.name %> + <%= link_to appointment.user %> <% end %> @@ -55,10 +55,12 @@ <%= format_date(appointment.start_date) %> - - <%= l(:label_end_date) %> - <%= format_date(appointment.due_date ) %> - + <% if appointment.duration > 1 %> + + <%= l(:label_end_date) %> + <%= format_date(appointment.due_date ) %> + + <% end %> <%= l(:label_estimated_hours) %>