aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations_by_month.html
blob: 5fb5184cb1e82667a394ef3544124f2897813c65 (plain)
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
[% SET login = users.$user.uid.0 %]
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>[% config.sitename %]: Donations for [% month %]</title>
    </head>
    <body>
        <h1>Mageia.Org donations for month [% month %]</h1>
        <h3>Summary</h3>
        <ul>
            <li>
            <b>Total</b>: [% donations.by_month.$month.total %] Euros
            </li>
            [% FOR type IN donations.by_month.$month.type.keys %]
            <li>
            <b>[% type %]</b>: [% donations.by_month.$month.type.$type %] Euros
            </li>
            [%- END -%]
        </ul>
        <h3>Donations list</h3>
        <ul>
            [%- USE date(format='%Y/%m/%d') -%]
            [% FOR don IN donations.by_month.$month.donations %]
            <li><b>[% don.who %]</b> donated <b>[% don.amount %]</b> Euros on [% date.format(don.date) %] ([% don.type %])</li>
            [%- END -%]
        </ul>
    </body>
</html>