mirror of
https://github.com/we-promise/sure.git
synced 2026-04-16 18:44:13 +00:00
* Transaction scaffold * Rough in transaction views * Fix sort order * Fix mass assignment issue * Fix test * Simplify CI workflow * Don't seed db before test
11 lines
541 B
Plaintext
11 lines
541 B
Plaintext
<%# locals: (date:, transactions:) %>
|
|
<div class="bg-gray-25 rounded-xl p-1">
|
|
<div class="py-2 px-4 flex items-center justify-between font-medium text-xs text-gray-500">
|
|
<h4><%= date.strftime('%b %d, %Y') %> · <%= transactions.size %></h4>
|
|
<span><%= number_to_currency(-transactions.sum(&:amount)) %></span>
|
|
</div>
|
|
<div class="bg-white shadow-xs rounded-md border border-alpha-black-25 divide-y divide-alpha-black-50 px-4">
|
|
<%= render partial: "transactions/transaction", collection: transactions %>
|
|
</div>
|
|
</div>
|