foodsoft/app/views/finance/financial_transactions/_transactions.html.haml

18 lines
600 B
Plaintext
Raw Normal View History

- if @ordergroup.financial_transactions.count > 20
= items_per_page
= pagination_links_remote @financial_transactions
%table.table.table-striped
%thead
%tr
%td= sort_link_helper t('.date'), "date"
%td= t('.who')
%td= sort_link_helper t('.note'), "note"
2013-05-16 00:05:47 +02:00
%td= sort_link_helper t('.amount'), "amount"
%tbody
- @financial_transactions.each do |t|
%tr
%td= format_time(t.created_on)
2013-09-20 22:40:13 +02:00
%td= h show_user(t.user)
%td= h t.note
%td.currency{:style => "color:#{t.amount < 0 ? 'red' : 'black'}; width:5em"}= number_to_currency(t.amount)