tab/app/views/pages/_transactions.html.haml

22 lines
717 B
Text
Raw Normal View History

2017-01-11 21:18:23 +01:00
.card-wrapper
.card
- @transactions.each do |t|
- t.symbolize_keys!
2017-01-16 23:30:01 +01:00
- date = t[:time].is_a?(Time) ? t[:time] : Date.parse(t[:time])
2017-01-11 21:18:23 +01:00
.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]
2017-01-14 22:54:07 +01:00
- if t[:peer] != t[:issuer]
.transaction-issuer
= "issued by #{t[:issuer]}"
2017-01-11 21:18:23 +01:00
.transaction-block-r
= euro_from_cents t[:amount]
.clear-both