mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 00:27:21 +00:00
* Add transfer model and clean up family snapshot fixtures * Ignore transfers in income and expense snapshots * Add transfer validations * Implement basic transfer matching UI * Fix merge conflicts * Add missing translations * Tweak selection states for transfer types * Add missing i18n translation
17 lines
613 B
Plaintext
17 lines
613 B
Plaintext
<%= content_tag :div, class: ["flex items-center gap-2"] do %>
|
|
<div class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-600/5 text-gray-600">
|
|
<%= transaction.name[0].upcase %>
|
|
</div>
|
|
|
|
<div class="truncate text-gray-900">
|
|
<% if transaction.new_record? %>
|
|
<%= content_tag :p, transaction.name %>
|
|
<% else %>
|
|
<%= link_to transaction.name,
|
|
transaction_path(transaction),
|
|
data: { turbo_frame: "drawer", turbo_prefetch: false },
|
|
class: "hover:underline hover:text-gray-800" %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|