mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-28 17:49:38 +02:00
Adds condition to skip link to transaction form if it's not editable (#1394)
This commit is contained in:
parent
e7f09e6f71
commit
7946cd7819
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="truncate text-gray-900">
|
<div class="truncate text-gray-900">
|
||||||
<% if entry.new_record? %>
|
<% if entry.new_record? || !editable %>
|
||||||
<%= content_tag :p, entry.name %>
|
<%= content_tag :p, entry.name %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to entry_name(entry),
|
<%= link_to entry_name(entry),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue