aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations_by_year.html
diff options
context:
space:
mode:
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>