From c875622023a26b8df8a5283b37d44790589cbb91 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 31 May 2013 12:48:11 +0000 Subject: add list of people who donated in JSON format git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8410 5b7c3c08-40e5-403b-9995-ace06908e4af --- NEWS | 1 + tmpl/donations_who.json | 11 +++++++++++ tmpl/index.html | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 tmpl/donations_who.json diff --git a/NEWS b/NEWS index e52b998..99fc183 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- add list of people who donated in JSON format - add donations_who.html page listing all people who donated money - provide some data in JSON format - sort donations by date on monthly page diff --git a/tmpl/donations_who.json b/tmpl/donations_who.json new file mode 100644 index 0000000..0895b4d --- /dev/null +++ b/tmpl/donations_who.json @@ -0,0 +1,11 @@ +[%- USE JSON ( pretty => 1 ) -%] +[%- + SET out = []; + FOREACH pa IN donations.by_pa.keys.sort; + SET n = {}; + SET n.who = donations.by_pa.$pa.who; + SET n.url = "http://treasurer.mageia.org/donations_p_${pa}.html"; + out.push(n); + END; +-%] +[% out.json -%] diff --git a/tmpl/index.html b/tmpl/index.html index 11e8382..e18c3fe 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -175,6 +175,8 @@

Grisbi

-- cgit v1.2.1