mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Flatten Holding model * Flatten balance model * Entries domain renames * Fix valuations reference * Fix trades stream * Fix brakeman warnings * Fix tests * Replace existing entryable type references in DB
10 lines
376 B
Plaintext
10 lines
376 B
Plaintext
<%# locals: (transaction:) %>
|
|
|
|
<div id="<%= dom_id(transaction, "category_menu") %>">
|
|
<% if transaction.transfer&.categorizable? || transaction.transfer.nil? %>
|
|
<%= render "categories/menu", transaction: transaction %>
|
|
<% else %>
|
|
<%= render "categories/badge", category: transaction.transfer&.payment? ? payment_category : transfer_category %>
|
|
<% end %>
|
|
</div>
|