mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 08:37:22 +00:00
* Make categories global This solves us A LOT of cash flow and budgeting problems. * Update schema.rb * Update auto_categorizer.rb * Update income_statement.rb * FIX budget sub-categories * FIX sub-categories and tests * Add 2 step migration
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
<%# locals: (entry:) %>
|
|
<div class="flex items-start justify-between gap-4" id="<%= dom_id(entry, :header) %>">
|
|
<div>
|
|
<h3 class="font-medium flex items-center gap-2">
|
|
<span class="text-2xl text-primary">
|
|
<%= format_money -entry.amount_money %>
|
|
</span>
|
|
<span class="text-lg text-secondary">
|
|
<%= entry.currency %>
|
|
</span>
|
|
<% if entry.transaction.transfer? %>
|
|
<%= icon "arrow-left-right", size: "sm", class: "text-secondary" %>
|
|
<% end %>
|
|
<% if entry.linked? %>
|
|
<span title="<%= t("transactions.transaction.linked_with_plaid") %>" class="text-secondary">
|
|
<%= icon("refresh-ccw", size: "sm") %>
|
|
</span>
|
|
<% end %>
|
|
</h3>
|
|
<div class="flex items-center gap-2">
|
|
<span class="text-sm text-secondary">
|
|
<%= I18n.l(entry.date, format: :long) %>
|
|
</span>
|
|
<% if entry.transaction.pending? %>
|
|
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-secondary text-secondary" title="<%= t("transactions.transaction.pending_tooltip") %>">
|
|
<%= icon "clock", size: "sm", color: "current" %>
|
|
<%= t("transactions.transaction.pending") %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|