aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>