aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-30 21:07:40 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-30 21:07:40 +0000
commitcbb2246b5a306a424e65d288885f3caf2c5812f2 (patch)
tree2dbf25b64cc4cbb6be8c49ef49780a2cdc1b780d
parentd6ddb60dca43ca308e4a9be9a68c9a22c58f68ed (diff)
downloadmgatres-cbb2246b5a306a424e65d288885f3caf2c5812f2.tar
mgatres-cbb2246b5a306a424e65d288885f3caf2c5812f2.tar.gz
mgatres-cbb2246b5a306a424e65d288885f3caf2c5812f2.tar.bz2
mgatres-cbb2246b5a306a424e65d288885f3caf2c5812f2.tar.xz
mgatres-cbb2246b5a306a424e65d288885f3caf2c5812f2.zip
donations_by_month.html: sort donations by date
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8404 5b7c3c08-40e5-403b-9995-ace06908e4af
-rw-r--r--NEWS2
-rw-r--r--tmpl/donations_by_month.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6307202..4d45682 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- sort donations by date on monthly page
+
Version 0.4
- add donations graphs
diff --git a/tmpl/donations_by_month.html b/tmpl/donations_by_month.html
index d4ca902..afba727 100644
--- a/tmpl/donations_by_month.html
+++ b/tmpl/donations_by_month.html
@@ -19,7 +19,7 @@
<h2>Donations list</h2>
<ul>
[%- USE date(format='%Y/%m/%d') -%]
- [% FOR don IN donations.by_month.$month.donations %]
+ [% FOR don IN donations.by_month.$month.donations.sort('date').reverse %]
<li><b><a href="donations_p_[% don.pa %].html">[% don.who %]</a></b> donated <b>[% don.amount %]</b> Euros on [% date.format(don.date) %] ([% don.sc_name %])</li>
[%- END -%]
</ul>