From 80e1b696eb2b1bb15822bccd5baa0181bc406792 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 17 May 2013 23:07:35 +0000 Subject: Add donations graphs git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8323 5b7c3c08-40e5-403b-9995-ace06908e4af --- NEWS | 3 +++ tmpl/donations.html | 26 ++++++++++++++++++++++++++ tmpl/donations_by_year.html | 28 ++++++++++++++++++++++++++++ tmpl/head_chart.html | 6 ++++++ 4 files changed, 63 insertions(+) create mode 100644 tmpl/head_chart.html diff --git a/NEWS b/NEWS index 01d4584..595fc9b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ + +- add donations graphs + Version 0.3 - sort transactions by category diff --git a/tmpl/donations.html b/tmpl/donations.html index fef42b4..435b95d 100644 --- a/tmpl/donations.html +++ b/tmpl/donations.html @@ -2,6 +2,7 @@ [% config.sitename %] Donations + [% INCLUDE head_chart.html %] [%- USE date(format='%Y/%m/%d') -%] @@ -20,6 +21,31 @@

Donations per year

+ + + + +

Donations for each month

+ + [% IF donations.by_year.$year.months.size > 1 %] + + + + [% END %] +