2016-01-04 20:14:09 +00:00
|
|
|
{% extends 'global/master.twig' %}
|
2015-09-05 16:11:04 +00:00
|
|
|
|
2015-09-07 20:53:47 +00:00
|
|
|
{% block title %}Donation Tracker{% endblock %}
|
|
|
|
|
2015-11-15 21:43:39 +00:00
|
|
|
{% set paginationPages = tracker.table|batch(20) %}
|
2016-02-27 16:46:16 +00:00
|
|
|
{% set paginationUrl %}{{ route('premium.tracker') }}{% endset %}
|
2015-11-15 21:43:39 +00:00
|
|
|
|
|
|
|
{% block css %}
|
|
|
|
<style type="text/css">
|
|
|
|
.pagination {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% 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>
|
2015-11-15 21:43:39 +00:00
|
|
|
<h1 class="stylised" style="margin: 1em auto; text-align: center;">Our current overall balance is €{{ tracker.balance|number_format(2) }}</h1>
|
2015-08-31 21:57:36 +00:00
|
|
|
<div class="sectionHeader">
|
|
|
|
Donation Log
|
|
|
|
</div>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2015-11-15 21:43:39 +00:00
|
|
|
<th>Supporter</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
<th>Action</th>
|
2015-08-31 21:57:36 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2015-11-15 21:43:39 +00:00
|
|
|
<th>Supporter</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
<th>Action</th>
|
2015-08-31 21:57:36 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
2015-11-15 21:43:39 +00:00
|
|
|
{% for supporter in tracker.table|batch(20)[get.page|default(1) - 1] %}
|
2015-08-31 21:57:36 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2016-02-27 16:46:16 +00:00
|
|
|
<a href="{{ route('user.profile', tracker.users[supporter.user_id].id) }}" class="default" style="color: {{ tracker.users[supporter.user_id].colour }}; text-shadow: 0 0 7px {% if tracker.users[supporter.user_id].colour != 'inherit' %}{{ tracker.users[supporter.user_id].colour }}{% else %}#222{% endif %};">{{ tracker.users[supporter.user_id].username }}</a>
|
2015-08-31 21:57:36 +00:00
|
|
|
</td>
|
2015-10-10 21:17:50 +00:00
|
|
|
<td style="color: {% if supporter.transaction_amount > 0 %}#0A0{% else %}#A00{% endif %};">
|
|
|
|
€{{ supporter.transaction_amount|number_format(2) }}
|
2015-08-31 21:57:36 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2015-10-10 21:17:50 +00:00
|
|
|
{{ supporter.transaction_comment }}
|
2015-08-31 21:57:36 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-11-15 21:43:39 +00:00
|
|
|
{% if tracker.table|batch(20)|length > 1 %}
|
|
|
|
<div>
|
2016-01-04 20:14:09 +00:00
|
|
|
{% include 'elements/pagination.twig' %}
|
2015-11-15 21:43:39 +00:00
|
|
|
<div class="clear"></div>
|
2015-08-31 21:57:36 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-09-05 16:11:04 +00:00
|
|
|
{% endblock %}
|