tab/app/views/pages/_transactions.html.haml
2017-01-14 22:54:07 +01:00

21 lines
682 B
Text

.card-wrapper
.card
- @transactions.each do |t|
- t.symbolize_keys!
- date = 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