Add tag preview when importing (#800)

This commit is contained in:
Jakub Kottnauer
2024-05-24 16:39:24 +02:00
committed by GitHub
parent 457247da8e
commit 6e59fdb369
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,12 @@
<%= render partial: "transactions/categories/badge", locals: { category: transaction.category } %>
</div>
<div class="w-48 flex gap-1">
<% transaction.tags.each do |tag| %>
<%= render partial: "tags/badge", locals: { tag: tag } %>
<% end %>
</div>
<div class="ml-auto">
<%= content_tag :p, format_money(Money.new(-transaction.amount, @import.account.currency)), class: ["whitespace-nowrap", BigDecimal(transaction.amount).negative? ? "text-green-600" : "text-red-600"] %>
</div>