aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations_who.json
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-31 12:48:11 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-31 12:48:11 +0000
commitc875622023a26b8df8a5283b37d44790589cbb91 (patch)
tree9d6450eafdfa341ef56ef6f00b90081387937764 /tmpl/donations_who.json
parent6c6ff997a0c19a3edbf7b6fd2cb91af2ac71567e (diff)
downloadmgatres-c875622023a26b8df8a5283b37d44790589cbb91.tar
mgatres-c875622023a26b8df8a5283b37d44790589cbb91.tar.gz
mgatres-c875622023a26b8df8a5283b37d44790589cbb91.tar.bz2
mgatres-c875622023a26b8df8a5283b37d44790589cbb91.tar.xz
mgatres-c875622023a26b8df8a5283b37d44790589cbb91.zip
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
Diffstat (limited to 'tmpl/donations_who.json')
-rw-r--r--tmpl/donations_who.json11
1 files changed, 11 insertions, 0 deletions
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 -%]