aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-07-12 10:44:08 +0000
committerNicolas Vigier <boklm@mageia.org>2013-07-12 10:44:08 +0000
commit46253bc51e3f251513b0149f0362021c86111019 (patch)
treec437973dc17a9686de898a3a408b61410d8c2e4b /tmpl/donations.html
parent18819a1623948c5f907c556e339b0f5b1d335524 (diff)
downloadmgatres-46253bc51e3f251513b0149f0362021c86111019.tar
mgatres-46253bc51e3f251513b0149f0362021c86111019.tar.gz
mgatres-46253bc51e3f251513b0149f0362021c86111019.tar.bz2
mgatres-46253bc51e3f251513b0149f0362021c86111019.tar.xz
mgatres-46253bc51e3f251513b0149f0362021c86111019.zip
Fix indentation
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8610 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'tmpl/donations.html')
-rw-r--r--tmpl/donations.html108
1 files changed, 54 insertions, 54 deletions
diff --git a/tmpl/donations.html b/tmpl/donations.html
index ab53424..dd17368 100644
--- a/tmpl/donations.html
+++ b/tmpl/donations.html
@@ -10,70 +10,70 @@
<h1 id='mgnavt'><a href="index.html">treasurer</a> ยป donations</h1>
<div class="content">
- <div class="section">
- [%- 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.
- </div>
+ <div class="section">
+ [%- 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.
+ </div>
- <div class="section">
- [%- l = 10 -%]
- <h2>Last [% l %] donations <a href="donations.rss"><img src="[% config.staticdir_url %]/feed-16x16.png" alt="RSS feed" /></a></h2>
- <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>
- </div>
+ <div class="section">
+ [%- l = 10 -%]
+ <h2>Last [% l %] donations <a href="donations.rss"><img src="[% config.staticdir_url %]/feed-16x16.png" alt="RSS feed" /></a></h2>
+ <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>
+ </div>
- <div class="section">
- <h2>Donations per year</h2>
+ <div class="section">
+ <h2>Donations per year</h2>
- <canvas id="donations_history_bar_chart" height="250" width="[% 80 + donations.by_year.keys.size * 65 %]"></canvas>
+ <canvas id="donations_history_bar_chart" height="250" width="[% 80 + donations.by_year.keys.size * 65 %]"></canvas>
- <script>
+ <script>
- var barChartData = {
- labels : ["[% donations.by_year.keys.sort.reverse.join('","') %]"],
- datasets : [
- {
- fillColor : "#151f79",
- strokeColor : "#101333",
- data : [
- [%- FOR year IN donations.by_year.keys.sort.reverse -%]
- [%- donations.by_year.$year.total -%]
- [%- IF ! loop.last() -%],[%- END -%]
- [%- END %]]
- }
- ]
- }
+ var barChartData = {
+ labels : ["[% donations.by_year.keys.sort.reverse.join('","') %]"],
+ datasets : [
+ {
+ fillColor : "#151f79",
+ strokeColor : "#101333",
+ data : [
+ [%- FOR year IN donations.by_year.keys.sort.reverse -%]
+ [%- donations.by_year.$year.total -%]
+ [%- IF ! loop.last() -%],[%- END -%]
+ [%- END %]]
+ }
+ ]
+ }
- var myLine = new Chart(document.getElementById("donations_history_bar_chart").getContext("2d")).Bar(barChartData);
+ var myLine = new Chart(document.getElementById("donations_history_bar_chart").getContext("2d")).Bar(barChartData);
- </script>
+ </script>
- <ul>
- [%- FOR year IN donations.by_year.keys.sort.reverse %]
- <li><a href="donations_y_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li>
- [%- END %]
- </ul>
- </div>
+ <ul>
+ [%- FOR year IN donations.by_year.keys.sort.reverse %]
+ <li><a href="donations_y_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li>
+ [%- END %]
+ </ul>
+ </div>
- <div class="section">
- <h2>Donations list</h2>
- <p>
- The list of donations received is available <a href="donations_all.html">on this page</a>.
- </p>
- </div>
+ <div class="section">
+ <h2>Donations list</h2>
+ <p>
+ The list of donations received is available <a href="donations_all.html">on this page</a>.
+ </p>
+ </div>
- <div class="section">
- <p>
- <small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small>
- </p>
- </div>
+ <div class="section">
+ <p>
+ <small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small>
+ </p>
+ </div>
</div>
</body>
</html>