aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-13 19:54:55 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-13 19:54:55 +0000
commitbb091a5986bfcb2477bd6b0a45990d02f681585e (patch)
tree7b591fbf61cd093d84478ddf9c6ddd6e23e7d399
parent1ef2836b2adab21e14ebe7e81aad46ec23caee54 (diff)
downloadmgatres-bb091a5986bfcb2477bd6b0a45990d02f681585e.tar
mgatres-bb091a5986bfcb2477bd6b0a45990d02f681585e.tar.gz
mgatres-bb091a5986bfcb2477bd6b0a45990d02f681585e.tar.bz2
mgatres-bb091a5986bfcb2477bd6b0a45990d02f681585e.tar.xz
mgatres-bb091a5986bfcb2477bd6b0a45990d02f681585e.zip
Add index page
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8225 5b7c3c08-40e5-403b-9995-ace06908e4af
-rwxr-xr-xmga-treasurer1
-rw-r--r--tmpl/index.html53
2 files changed, 54 insertions, 0 deletions
diff --git a/mga-treasurer b/mga-treasurer
index 1efe831..786246b 100755
--- a/mga-treasurer
+++ b/mga-treasurer
@@ -128,6 +128,7 @@ sub output_pages {
last_update => $last_update,
};
process_template($template, 'donations', $vars, 'donations');
+ process_template($template, 'index', $vars, 'index');
}
my $r = XMLin($config->{grisbi_file});
diff --git a/tmpl/index.html b/tmpl/index.html
new file mode 100644
index 0000000..bddbb92
--- /dev/null
+++ b/tmpl/index.html
@@ -0,0 +1,53 @@
+[%- USE date(format='%Y/%m/%d') -%]
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>[% config.sitename %] treasurer infos</title>
+ </head>
+ <body>
+ <h1>treasurer.mageia.og</h1>
+
+ This website provides some informations about Mageia.Org bank accounts
+ status.
+
+ <h3>Donations</h3>
+
+ [%- l = 3 -%]
+ Last [% l %] donations received :
+ <ul>
+ [%- i=0 -%]
+ [%- FOR don IN donations.donations.sort('date').reverse -%]
+ [%- 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>
+
+ <a href="donations.html">See more about donations</a>.
+
+ <h3>Expenses</h3>
+
+ Coming soon.
+
+ <h3>Grisbi</h3>
+ Mageia.Org accounts are managed using <a href="http://grisbi.org/">grisbi</a>.
+ For more details about Mageia.Org accounts, you can download
+ <a href="mageia-accounts.gsb">this file</a>, and open it with grisbi.
+
+ <h3>Questions</h3>
+ For any question related to Mageia.Org accounts or donations you can
+ send an email to <a href="mailto:treasurer@mageia.org">treasurer@mageia.org</a>.
+
+ <h3>Source code</h3>
+ Source code for the tools used to generate this website is available on
+ Mageia svn repository :
+
+ <p>
+ <code>
+ $ svn co <a href="http://svnweb.mageia.org/soft/mga-treasurer/trunk/">
+ svn://svn.mageia.org/svn/soft/mga-treasurer/trunk/</a> mga-treasurer
+ </code>
+ </p>
+ <small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small>
+ </body>
+</html>