diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-11 09:51:05 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-11 09:51:05 +0000 |
commit | 67438a91f1f65d7de5743bfdf8455c473b75e885 (patch) | |
tree | 67c5b65a5ab4bc05e4b46639f260a677157b62f1 /tmpl/donations.html | |
parent | 65bbaa0096c75846d3ddddc2f52f82cdc99172bb (diff) | |
download | mgatres-67438a91f1f65d7de5743bfdf8455c473b75e885.tar mgatres-67438a91f1f65d7de5743bfdf8455c473b75e885.tar.gz mgatres-67438a91f1f65d7de5743bfdf8455c473b75e885.tar.bz2 mgatres-67438a91f1f65d7de5743bfdf8455c473b75e885.tar.xz mgatres-67438a91f1f65d7de5743bfdf8455c473b75e885.zip |
First version
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8203 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'tmpl/donations.html')
-rw-r--r-- | tmpl/donations.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tmpl/donations.html b/tmpl/donations.html new file mode 100644 index 0000000..aa8f80e --- /dev/null +++ b/tmpl/donations.html @@ -0,0 +1,31 @@ +[% SET login = users.$user.uid.0 %] +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %] Donations</title> + </head> + <body> + [%- USE date(format='%Y/%m/%d') -%] + <h1>Mageia.Org donations</h1> + [% donations.total_30 %] Euros have been donated to Mageia.org in the last 30 days. + + [%- l = 5 -%] + <h3>Last [% l %] donations</h3> + <ul> + [%- i=0 -%] + [%- FOR don IN donations.donations -%] + [%- i = i + 1 -%] + [%- LAST IF i > l -%] + <li><b>[% don.who %]</b> donated <b>[% don.amount %]</b> Euros on [% date.format(don.date) %]</li> + [%- END -%] + </ul> + + <h3>Donations per year</h3> + <ul> + [%- FOR year IN donations.by_year.keys.sort %] + <li><a href="donations_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li> + [%- END %] + </ul> + <small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small> + </body> +</html> |