blob: 7ee0a2feb42b6dbb8c50b1ef525196b499e40969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{% extends "base.html" %}
{% from "_helpers.html" import format_currency, render_pagination %}
{% block content %}
<table class="table table-hover table-striped">
<thead>
<tr>
<th>Type</th>
<th>Amount</th>
<th>Date</th>
</tr>
</thead>
{% for tx in transactions.items %}
<tr{% if not tx.finished %} style="opacity: 0.5"{% endif %}>
<td>
{{ tx.type }} {% if not tx.finished %}<i>(processing)</i>{% endif %}
<small>
{% if tx.type == 'transfer' and tx.amount > 0 %}
from <b>{{ tx.related_user }}</b>
{% elif tx.type == 'transfer' and tx.amount < 0 %}
to <b>{{ tx.related }}</b>
{% elif tx.type == 'purchase' and tx.product_id %}
of product <b>{{ tx.product_id }}</b>
{% endif %}
</small>
</td>
<td>{{ format_currency(tx.amount) }}</td>
<td>{{ tx.created }}</td>
</tr>
{% else %}
<tr><td colspan=3 class="placeholder">Nothing to see here...</td></tr>
{% endfor %}
</table>
{{ render_pagination(transactions) }}
{% endblock %}
|