2012-11-10 16:44:05 +01:00
|
|
|
- if @ordergroup.financial_transactions.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @financial_transactions
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2013-02-11 03:57:33 +01:00
|
|
|
%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"
|
2012-11-10 16:44:05 +01:00
|
|
|
%tbody
|
|
|
|
- @financial_transactions.each do |t|
|
2011-06-09 21:35:05 +02:00
|
|
|
%tr
|
2012-11-10 16:44:05 +01:00
|
|
|
%td= format_time(t.created_on)
|
2013-09-20 22:40:13 +02:00
|
|
|
%td= h show_user(t.user)
|
2012-11-10 16:44:05 +01:00
|
|
|
%td= h t.note
|
|
|
|
%td.currency{:style => "color:#{t.amount < 0 ? 'red' : 'black'}; width:5em"}= number_to_currency(t.amount)
|