From 7946cd7819995dd932faf02aaef1c1e9f398a101 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 31 Oct 2024 09:57:06 -0300 Subject: [PATCH] Adds condition to skip link to transaction form if it's not editable (#1394) --- app/views/account/transactions/_transaction.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/account/transactions/_transaction.html.erb b/app/views/account/transactions/_transaction.html.erb index 475ab256..4e033f9a 100644 --- a/app/views/account/transactions/_transaction.html.erb +++ b/app/views/account/transactions/_transaction.html.erb @@ -17,7 +17,7 @@
- <% if entry.new_record? %> + <% if entry.new_record? || !editable %> <%= content_tag :p, entry.name %> <% else %> <%= link_to entry_name(entry),