From 4938b4fe4d81be60d0d5f9761a4c2b0f873456e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Gald=C3=A1mez?= Date: Wed, 30 Oct 2024 13:06:57 -0300 Subject: [PATCH] Adds condition to skip link to transaction form if it's not editable --- 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), -- 2.53.0