21 lines
717 B
Text
21 lines
717 B
Text
.card-wrapper
|
|
.card
|
|
- @transactions.each do |t|
|
|
- t.symbolize_keys!
|
|
- date = t[:time].is_a?(Time) ? t[:time] : Date.parse(t[:time])
|
|
.transaction
|
|
.transaction-calendar
|
|
%span.transaction-day= date.strftime('%d')
|
|
%span.transaction-month= Date::MONTHNAMES[date.month][0..2]
|
|
.transaction-block
|
|
.transaction-block-l
|
|
%h4.transaction-message
|
|
= t[:message]
|
|
.transaction-peer
|
|
= t[:peer]
|
|
- if t[:peer] != t[:issuer]
|
|
.transaction-issuer
|
|
= "issued by #{t[:issuer]}"
|
|
.transaction-block-r
|
|
= euro_from_cents t[:amount]
|
|
.clear-both
|