Adds condition to skip link to transaction form if it's not editable #1394

Merged
nicogaldamez merged 1 commits from 1386-no-link-to-transaction-form-if-not-editable into main 2024-10-31 20:57:06 +08:00

View File

@@ -17,7 +17,7 @@
</div>
<div class="truncate text-gray-900">
<% if entry.new_record? %>
<% if entry.new_record? || !editable %>
<%= content_tag :p, entry.name %>
<% else %>
<%= link_to entry_name(entry),