forked from samuel-p/sp-codes.de
major improvements
added expenses and donations replaced some icons with svgs
This commit is contained in:
parent
c5b781fde1
commit
a5aa3cc014
41 changed files with 428 additions and 95 deletions
34
src/_includes/donations-current.html
Normal file
34
src/_includes/donations-current.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<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 donations[0].donations %}
|
||||
<tr>
|
||||
<td>{{donation.date}}</td>
|
||||
{% if donation.via == 'opencollective' %}
|
||||
<td><a href="https://opencollective.com/sp-codes" rel="nofollow">Open Collective</a></td>
|
||||
{% else %}
|
||||
<td>{{strings[donation.via][locale]}}</td>
|
||||
{% endif %}
|
||||
{% if donation.from %}
|
||||
<td>{{donation.from}}</td>
|
||||
{% else %}
|
||||
<td>***</td>
|
||||
{% endif %}
|
||||
<td>{{donation.amount | amount(locale)}} €</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="3">{{strings.total[locale]}}</th>
|
||||
<th>{{donations[0].donations | sum | amount(locale)}} €</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue