1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
[%- 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>
[% INCLUDE head_chart.html %]
</head>
<body>
<h1>treasurer.mageia.og</h1>
This website provides some informations about Mageia.Org bank accounts
status.
<h2>Donations</h2>
<a href="donations.rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="RSS feed" /></a>
[%- 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><a href="donations_p_[% don.pa %].html">[% don.who %]</a></b> donated <b>[% don.amount %]</b> Euros on [% date.format(don.date) %]</li>
[%- END -%]
</ul>
<a href="donations.html">See more about donations</a>.
<h2>Accounts status</h2>
<ul>
<li>Global balances: [% transactions.balance %] Euros</li>
[%- FOR ac IN transactions.by_ac.keys -%]
<li><a href="a_[% ac %].html">[% transactions.by_ac.$ac.account %]</a>: [% transactions.by_ac.$ac.balance %] Euros</li>
[%- END -%]
</ul>
<h2>Expenses and revenues by category</h2>
<ul>
[%- FOR ca IN transactions.by_ca.keys.sort %]
<li><b><a href="c_[% ca %].html">[% transactions.by_ca.$ca.c_name %]</a></b>: [% transactions.by_ca.$ca.balance %] Euros</li>
[%- END -%]
</ul>
<h2>Accounts history</h2>
<canvas id="accounts_history_bar_chart" height="250" width="[% 80 + transactions.by_year.keys.size * 100 %]"></canvas>
<script>
var barChartData = {
labels : ["[% transactions.by_year.keys.sort.reverse.join('","') %]"],
datasets : [
{
fillColor : "#151f79",
strokeColor : "#101333",
data : [
[%- FOR year IN transactions.by_year.keys.sort.reverse -%]
[%- transactions.by_year.$year.revenues -%]
[%- IF ! loop.last() -%],[%- END -%]
[%- END %]]
},
{
fillColor : "#e51b1b",
strokeColor : "#f11111",
data: [
[%- FOR year IN transactions.by_year.keys.sort.reverse -%]
[%- transactions.by_year.$year.expenses -%]
[%- IF ! loop.last() -%],[%- END -%]
[%- END %]]
}
]
}
var myLine = new Chart(document.getElementById("accounts_history_bar_chart").getContext("2d")).Bar(barChartData);
</script>
<ul>
[%- FOR year IN transactions.by_year.keys.sort.reverse -%]
<li><a href="y_[% year %].html">[%- year -%]</a> - Expenses: [% transactions.by_year.$year.expenses %] Revenues: [% transactions.by_year.$year.revenues %]</li>
[%- END -%]
</ul>
<h2>RSS Feeds</h2>
<p><a href="donations.rss">Donations RSS Feed <img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="RSS feed" /></a></p>
<p><a href="transactions.rss">Transactions RSS Feed <img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="RSS feed" /></a></p>
<h2>Grisbi</h2>
<p>
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.
</p>
<p>
If you want to receive an email notification when it is updated, you
can subscribe to the <a href="https://ml.mageia.org/l/info/treasurer-commits">treasurer-commits</a>
mailing list.
</p>
<h2>Questions</h2>
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>.
<h2>Source code</h2>
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>
|