aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations.html
blob: 8eac51cd76f8c4a45ae8c531000dab94e4dfef36 (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
29
30
<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 = 10 -%]
        <h3>Last [% l %] donations <a href="donations.rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="RSS feed" /></a></h3>
        <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>

        <h3>Donations per year</h3>
        <ul>
            [%- FOR year IN donations.by_year.keys.sort.reverse %]
            <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>