From 3468b5f2364d0b3580afda5028b4126a2e4a67d5 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 19 Feb 2022 22:53:39 -0500 Subject: [PATCH] Open links in new window --- app/views/estimates/_list.html.erb | 2 +- app/views/invoices/_list.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/estimates/_list.html.erb b/app/views/estimates/_list.html.erb index 4ec6550..0c7dfc9 100644 --- a/app/views/estimates/_list.html.erb +++ b/app/views/estimates/_list.html.erb @@ -2,7 +2,7 @@ <% @customer.qbo_estimates.each do |estimate| %>
- <%= link_to "##{estimate.doc_number}", estimate_path(estimate) %> + <%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %>
<% end %> diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 18c0da9..af532a1 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -2,7 +2,7 @@ <% @customer.qbo_invoices.each do |invoice| %>
- <%= link_to "##{invoice.doc_number}", invoice_path(invoice) %> + <%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %>
<% end %>