aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations_by_year.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_by_year.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_by_year.html')
-rw-r--r--tmpl/donations_by_year.html78
1 files changed, 39 insertions, 39 deletions
diff --git a/tmpl/donations_by_year.html b/tmpl/donations_by_year.html
index 7d26e7c..ffbcdaf 100644
--- a/tmpl/donations_by_year.html
+++ b/tmpl/donations_by_year.html
@@ -10,52 +10,52 @@
<h1 id='mgnavt'><a href="index.html">treasurer</a> » <a href="donations.html">donations</a> » year [% year %]</h1>
<div class="content">
- <h1>Mageia.Org donations for year [% year %]</h1>
- <h2>Summary</h2>
- <ul>
- <li>
- <b>Total</b>: [% donations.by_year.$year.total %] Euros
- </li>
- [%- FOR type IN donations.by_year.$year.type.keys -%]
- <li>
- <b>[% type %]</b>: [% donations.by_year.$year.type.$type %] Euros
- </li>
- [%- END -%]
- </ul>
- <h2>Donations for each month</h2>
+ <h1>Mageia.Org donations for year [% year %]</h1>
+ <h2>Summary</h2>
+ <ul>
+ <li>
+ <b>Total</b>: [% donations.by_year.$year.total %] Euros
+ </li>
+ [%- FOR type IN donations.by_year.$year.type.keys -%]
+ <li>
+ <b>[% type %]</b>: [% donations.by_year.$year.type.$type %] Euros
+ </li>
+ [%- END -%]
+ </ul>
+ <h2>Donations for each month</h2>
- [% IF donations.by_year.$year.months.size > 1 %]
- <canvas id="donations_history_bar_chart" height="250" width="[% 80 + donations.by_year.$year.months.size * 65 %]"></canvas>
+ [% IF donations.by_year.$year.months.size > 1 %]
+ <canvas id="donations_history_bar_chart" height="250" width="[% 80 + donations.by_year.$year.months.size * 65 %]"></canvas>
- <script>
+ <script>
- var barChartData = {
- labels : ["[% donations.by_year.$year.months.sort.join('","') %]"],
- datasets : [
- {
- fillColor : "#151f79",
- strokeColor : "#101333",
- data : [
- [%- FOR month IN donations.by_year.$year.months.sort -%]
- [%- donations.by_month.$month.total -%]
- [%- IF ! loop.last() -%],[%- END -%]
- [%- END %]]
+ var barChartData = {
+ labels : ["[% donations.by_year.$year.months.sort.join('","') %]"],
+ datasets : [
+ {
+ fillColor : "#151f79",
+ strokeColor : "#101333",
+ data : [
+ [%- FOR month IN donations.by_year.$year.months.sort -%]
+ [%- donations.by_month.$month.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>
- [% END %]
+ </script>
+ [% END %]
- <ul>
- [%- FOR month IN donations.by_month.keys.sort -%]
- [%- IF donations.by_month.$month.year == year -%]
- <li><a href="donations_m_[% month %].html">[% month %]: [% donations.by_month.$month.total %] Euros</a></li>
- [%- END -%]
- [%- END -%]
- </ul>
+ <ul>
+ [%- FOR month IN donations.by_month.keys.sort -%]
+ [%- IF donations.by_month.$month.year == year -%]
+ <li><a href="donations_m_[% month %].html">[% month %]: [% donations.by_month.$month.total %] Euros</a></li>
+ [%- END -%]
+ [%- END -%]
+ </ul>
</div>
</body>
</html>