diff --git a/app/views/customer_appointments/_tooltip.html.erb b/app/views/customer_appointments/_tooltip.html.erb index 267427c..6b61e8a 100644 --- a/app/views/customer_appointments/_tooltip.html.erb +++ b/app/views/customer_appointments/_tooltip.html.erb @@ -51,7 +51,7 @@ <%= l(:label_estimate) %> - <%= link_to appointment.estimate %> + <%= link_to appointment.estimate, appointment.estimate, target: "_blank" %> <% end %> diff --git a/app/views/customer_appointments/show.html.erb b/app/views/customer_appointments/show.html.erb index 5306b2d..31fae1d 100644 --- a/app/views/customer_appointments/show.html.erb +++ b/app/views/customer_appointments/show.html.erb @@ -68,8 +68,10 @@
<%= @appointment.customer&.primary_phone %>
-
<%= l(:label_estimate, default: 'Estimate') %>:
-
<%= link_to_if @appointment.estimate, @appointment.estimate&.name, @appointment.estimate %>
+
<%= l(:label_estimate) %>:
+ <% if @appointment.estimate %> +
<%= link_to @appointment.estimate, @appointment.estimate, target: "_blank" %>
+ <% end %>