2011-06-09 21:35:05 +02:00
|
|
|
- if @total == 0
|
|
|
|
%p Keine gefunden
|
|
|
|
- else
|
|
|
|
%p
|
|
|
|
Anzahl gefundener Transaktionen:
|
|
|
|
%b= @total
|
|
|
|
%p
|
|
|
|
= pagination_links_remote @financial_transactions, :update => 'transactions', |
|
|
|
|
:params => {:sort => params[:sort], :query => params['query']} |
|
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
2012-04-16 08:48:01 +02:00
|
|
|
<td #{sort_td_class_helper("date")}>
|
2011-06-09 21:35:05 +02:00
|
|
|
\#{sort_link_helper "Datum", "date"}
|
|
|
|
%td Wer
|
2012-04-16 08:48:01 +02:00
|
|
|
<td #{sort_td_class_helper("note")}>
|
2011-06-09 21:35:05 +02:00
|
|
|
\#{sort_link_helper "Notiz", "note"}
|
2012-04-16 08:48:01 +02:00
|
|
|
<td #{sort_td_class_helper("amount")}>
|
2011-06-09 21:35:05 +02:00
|
|
|
\#{sort_link_helper "Betrag", "amount"}
|
|
|
|
%tbody
|
|
|
|
- @financial_transactions.each do |t|
|
|
|
|
%tr{:class => cycle("even","odd")}
|
|
|
|
%td= format_time(t.created_on)
|
|
|
|
%td= h t.user.nil? ? '??' : t.user.nick
|
|
|
|
%td= h t.note
|
|
|
|
%td.currency{:style => "color:#{t.amount < 0 ? 'red' : 'black'}; width:5em"}= number_to_currency(t.amount)
|