tab/app/views/pages/_transactions.html.haml
2017-01-11 21:18:23 +01:00

18 lines
558 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]
.transaction-block-r
= euro_from_cents t[:amount]
.clear-both