From 8016e089d90a6ae3eb69803cedd5cbf656048a73 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 16 May 2013 20:27:14 +0000 Subject: Add transactions RSS feed git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8291 5b7c3c08-40e5-403b-9995-ace06908e4af --- NEWS | 1 + tmpl/index.html | 4 ++++ tmpl/transactions.rss | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 tmpl/transactions.rss diff --git a/NEWS b/NEWS index dc3a529..663954a 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ - add per account transactions pages - add per category transactions pages - add per person transactions pages +- add transactions RSS feed Version 0.2 diff --git a/tmpl/index.html b/tmpl/index.html index 357f1ce..a6e4b1b 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -51,6 +51,10 @@ [%- END -%] +

RSS Feeds

+

Donations RSS Feed RSS feed

+

Transactions RSS Feed RSS feed

+

Grisbi

Mageia.Org accounts are managed using grisbi. diff --git a/tmpl/transactions.rss b/tmpl/transactions.rss new file mode 100644 index 0000000..c0c1455 --- /dev/null +++ b/tmpl/transactions.rss @@ -0,0 +1,42 @@ + + + + + [% config.sitename %]: Transactions + [% config.siteurl %] + [% config.sitename %] Transactions + en + + + + [%- FOR tra IN transactions.transactions.sort('date').reverse -%] + + + [% tra.amount %] Euros[% IF tra.notes %] - [% tra.notes %][% END %][% IF tra.ca %] - [% tra.c_name %][% END %] + [% config.siteurl %]/m_[% date.format(tra.date, format => '%Y-%m') %].html + [% config.sitename %]:transactions:[% tra.nb %] + [%- USE date %] + [% date.format(tra.date, format => '%a, %d %b %Y %H:%M:%S', gmt => 1) %] GMT + [% IF tra.ca %] + [% tra.c_name %] + [% END %] + + Amount: [% tra.amount %] Euros<br/> + Account: [% tra.account %]<br/> + [%- IF tra.pa -%] + Who: [% tra.who %]<br/> + [%- END %] + [%- IF tra.trt -%] + Notes: Internal transfert<br/> + [%- ELSIF tra.notes -%] + Notes: [% tra.notes %]<br/> + [%- END %] + [%- IF tra.ca -%] + Category: [% tra.c_name %][% IF tra.sc_name %] : [% tra.sc_name %][% END %]<br/> + [%- END %] + + + + [%- END -%] + + -- cgit v1.2.1