diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-31 12:48:14 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-31 12:48:14 +0000 |
commit | 2775dcec50a68b49e67d5507629cd0194e6fd5ad (patch) | |
tree | a08c3098be5261786940a097ba802ff03b63aa64 | |
parent | c875622023a26b8df8a5283b37d44790589cbb91 (diff) | |
download | mgatres-2775dcec50a68b49e67d5507629cd0194e6fd5ad.tar mgatres-2775dcec50a68b49e67d5507629cd0194e6fd5ad.tar.gz mgatres-2775dcec50a68b49e67d5507629cd0194e6fd5ad.tar.bz2 mgatres-2775dcec50a68b49e67d5507629cd0194e6fd5ad.tar.xz mgatres-2775dcec50a68b49e67d5507629cd0194e6fd5ad.zip |
Add page listing all donations
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8411 5b7c3c08-40e5-403b-9995-ace06908e4af
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | mktreasurer | 1 | ||||
-rw-r--r-- | tmpl/donations.html | 8 | ||||
-rw-r--r-- | tmpl/donations_all.html | 15 |
4 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,4 @@ +- add page listing all donations - add list of people who donated in JSON format - add donations_who.html page listing all people who donated money - provide some data in JSON format diff --git a/mktreasurer b/mktreasurer index 44b8d56..fda59ad 100755 --- a/mktreasurer +++ b/mktreasurer @@ -272,6 +272,7 @@ sub output_pages { last_update => $last_update, }; process_template($template, 'donations', $vars, 'donations'); + process_template($template, 'donations_all', $vars, 'donations_all'); process_template($template, 'donations_who', $vars, 'donations_who'); process_template($template, 'transactions', $vars, 'transactions'); process_template($template, 'index', $vars, 'index'); diff --git a/tmpl/donations.html b/tmpl/donations.html index 908a774..d0766e1 100644 --- a/tmpl/donations.html +++ b/tmpl/donations.html @@ -50,6 +50,14 @@ <li><a href="donations_y_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li> [%- END %] </ul> + + <h2>Donations list</h2> + <p> + The list of donations received is available <a href="donations_all.html">on this page</a>. + </p> + + <p> <small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small> + </p> </body> </html> diff --git a/tmpl/donations_all.html b/tmpl/donations_all.html new file mode 100644 index 0000000..f08fc9e --- /dev/null +++ b/tmpl/donations_all.html @@ -0,0 +1,15 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: Donations list</title> + </head> + <body> + <h1>Mageia.Org donations list</h1> + <ul> + [%- USE date(format='%Y/%m/%d') -%] + [% FOR don IN donations.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> + </body> +</html> |