2015-09-05 16:11:04 +00:00
|
|
|
{% extends 'global/master.tpl' %}
|
|
|
|
|
2015-09-07 20:53:47 +00:00
|
|
|
{% block title %}Donation Tracker{% endblock %}
|
|
|
|
|
2015-09-05 16:11:04 +00:00
|
|
|
{% block content %}
|
2015-08-31 21:57:36 +00:00
|
|
|
<div class="content support">
|
|
|
|
<div class="head">Donation Tracker</div>
|
|
|
|
<h1 class="stylised" style="margin: 1em auto; text-align: center;">Our current overall balance is €{{ page.premiumData.balance|number_format(2) }}</h1>
|
|
|
|
<div class="sectionHeader">
|
|
|
|
Donation Log
|
|
|
|
</div>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Supporter
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Amount
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Action
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Supporter
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Amount
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Action
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
{% for supporter in page.premiumTable[page.currentPage] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-09-05 16:11:04 +00:00
|
|
|
<a href="{{ urls.format('USER_PROFILE', [page.premiumData.users[supporter.uid].data.id]) }}" class="default" style="color: {{ page.premiumData.users[supporter.uid].colour }}; text-shadow: 0 0 7px {% if page.premiumData.users[supporter.uid].colour != 'inherit' %}{{ page.premiumData.users[supporter.uid].colour }}{% else %}#222{% endif %};">{{ page.premiumData.users[supporter.uid].data.username }}</a>
|
2015-08-31 21:57:36 +00:00
|
|
|
</td>
|
|
|
|
<td style="color: {% if supporter.amount > 0 %}#0A0{% else %}#A00{% endif %};">
|
|
|
|
€{{ supporter.amount|number_format(2) }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ supporter.comment }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% if page.premiumTable|length > 1 %}
|
|
|
|
<div class="pagination" style="float: right;">
|
|
|
|
{% if page.currentPage > 0 %}
|
2015-09-05 16:11:04 +00:00
|
|
|
<a href="{{ urls.format('SITE_DONATE_TRACK_PAGE', [page.currentPage]) }}"><span class="fa fa-step-backward"></span></a>
|
2015-08-31 21:57:36 +00:00
|
|
|
{% endif %}
|
|
|
|
{% for count,navpage in page.premiumTable %}
|
2015-09-05 16:11:04 +00:00
|
|
|
<a href="{{ urls.format('SITE_DONATE_TRACK_PAGE', [(count + 1)]) }}"{% if count == page.currentPage %} class="current"{% endif %}>{{ count + 1 }}</a>
|
2015-08-31 21:57:36 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% if page.currentPage + 1 < page.premiumTable|length %}
|
2015-09-05 16:11:04 +00:00
|
|
|
<a href="{{ urls.format('SITE_DONATE_TRACK_PAGE', [(page.currentPage + 2)]) }}"><span class="fa fa-step-forward"></span></a>
|
2015-08-31 21:57:36 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-09-05 16:11:04 +00:00
|
|
|
{% endblock %}
|