aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-01 09:46:45 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-01 09:46:45 +0000
commit7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2 (patch)
treef1cfe6c7c9f7a835278a2c2d65f395abfc51998f
parent202561f39efc6fe694b5819e0e853f4230e0eff6 (diff)
downloadmgatres-7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2.tar
mgatres-7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2.tar.gz
mgatres-7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2.tar.bz2
mgatres-7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2.tar.xz
mgatres-7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2.zip
index.json: add last update date
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8415 5b7c3c08-40e5-403b-9995-ace06908e4af
-rw-r--r--tmpl/index.html3
-rw-r--r--tmpl/index.json1
2 files changed, 3 insertions, 1 deletions
diff --git a/tmpl/index.html b/tmpl/index.html
index e18c3fe..d5c482a 100644
--- a/tmpl/index.html
+++ b/tmpl/index.html
@@ -174,7 +174,8 @@
Some data is available in json format :
<ul>
<li><a href="index.json">index.json</a>: balance, donations received in
- the last 30 days, and the list of the last 10 donations</li>
+ the last 30 days, time of last update and the list of the last 10
+ donations</li>
<li><a href="donations_who.json">donations_who.json</a>: list of people
who donated money to Mageia.Org.</li>
</ul>
diff --git a/tmpl/index.json b/tmpl/index.json
index 1f60acf..b6102d7 100644
--- a/tmpl/index.json
+++ b/tmpl/index.json
@@ -5,6 +5,7 @@
SET out.balance = transactions.balance.bstr;
SET out.donations_30days = donations.total_30.bstr;
SET out.last_donations = [];
+ SET out.last_update = date.format(last_update, format => '%Y/%m/%d %H:%M:%S');
SET i=0;
SET l=10;
FOREACH don IN donations.donations.sort('date').reverse;