2021-06-07 22:16:21 +00:00
|
|
|
{% for year in donations %}
|
|
|
|
<h2>{{year.year}}</h2>
|
|
|
|
|
2021-06-13 00:17:25 +00:00
|
|
|
<div class="table-container">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{strings.date[locale]}}</th>
|
|
|
|
<th>{{strings.via[locale]}}</th>
|
|
|
|
<th>{{strings.from[locale]}}</th>
|
|
|
|
<th>{{strings.amount[locale]}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for donation in year.donations %}
|
|
|
|
<tr>
|
|
|
|
<td>{{donation.date}}</td>
|
|
|
|
{% if donation.via == 'opencollective' %}
|
2022-12-08 17:34:19 +00:00
|
|
|
<td>Open Collective</td>
|
2021-06-13 00:17:25 +00:00
|
|
|
{% else %}
|
|
|
|
<td>{{strings[donation.via][locale]}}</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if donation.from %}
|
|
|
|
<td>{{donation.from}}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>***</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{donation.amount | amount}} €</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th colspan="3">{{strings.total[locale]}}</th>
|
|
|
|
<th>{{year.donations | sum | amount}} €</th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-06-07 22:16:21 +00:00
|
|
|
{% endfor %}
|