mirror of
https://github.com/we-promise/sure.git
synced 2026-04-10 07:44:48 +00:00
An overhaul and cleanup of the transactions feature including: - Simplification of transactions search and filtering - Consolidation of account sync logic after transaction change - Split sidebar modal and modal into "drawer" and "modal" concepts - Refactor of transaction partials and folder organization - Cleanup turbo frames and streams for transaction updates, including new Transactions::RowsController for inline updates - Refactored and added several integration and systems tests
17 lines
581 B
Plaintext
17 lines
581 B
Plaintext
<%= content_tag :div, class: ["flex items-center gap-2"] do %>
|
|
<div class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-600/5 text-gray-600">
|
|
<%= transaction.name[0].upcase %>
|
|
</div>
|
|
|
|
<div class="text-gray-900 truncate">
|
|
<% if transaction.new_record? %>
|
|
<%= content_tag :p, transaction.name %>
|
|
<% else %>
|
|
<%= link_to transaction.name,
|
|
transaction_path(transaction),
|
|
data: { turbo_frame: "drawer" },
|
|
class: "hover:underline hover:text-gray-800" %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|