diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/tra_row.html | 2 | ||||
-rw-r--r-- | tmpl/transactions_by_pa.html | 33 |
2 files changed, 34 insertions, 1 deletions
diff --git a/tmpl/tra_row.html b/tmpl/tra_row.html index 61b6f46..34b755a 100644 --- a/tmpl/tra_row.html +++ b/tmpl/tra_row.html @@ -2,7 +2,7 @@ <td>[% date.format(tra.date) %]</td> <td>[% tra.amount %]</td> <td><a href="a_[% tra.ac %].html">[% tra.account %]</a></td> - <td>[% tra.who %]</td> + <td>[% IF tra.pa %]<a href="p_[% tra.pa %].html">[% tra.who %]</a>[% END %]</td> [% IF tra.trt %] <td>Internal transfert</td> [% ELSE %] diff --git a/tmpl/transactions_by_pa.html b/tmpl/transactions_by_pa.html new file mode 100644 index 0000000..6b391ec --- /dev/null +++ b/tmpl/transactions_by_pa.html @@ -0,0 +1,33 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: Transactions for [% who %]</title> + </head> + <body> + <h1>Mageia.Org transactions for [% who %]</h1> + <h3>Summary</h3> + <ul> + [% IF transactions.by_pa.$pa.revenues != 0 %] + <li><b>Revenues</b>: [% transactions.by_pa.$pa.revenues %] Euros</li> + [% END %] + [% IF transactions.by_pa.$pa.expenses != 0 %] + <li><b>Expenses</b>: [% transactions.by_pa.$pa.expenses %] Euros</li> + [% END %] + </ul> + <h3>Details</h3> + <table border="1"> + <tr> + <th>Date</th> + <th>Amount</th> + <th>Account</th> + <th>Who</th> + <th>Notes</th> + <th>Category</th> + </tr> + [%- USE date(format='%Y/%m/%d') -%] + [% FOR tra IN transactions.by_pa.$pa.transactions.sort('date').reverse %] + [%- INCLUDE tra_row.html %] + [%- END -%] + </table> + </body> +</html> |