-
Notifications
You must be signed in to change notification settings - Fork 0
/
history_raw.html
34 lines (34 loc) · 1.12 KB
/
history_raw.html
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
<div style="overflow: hidden; min-height:400px;">
<p class="love">History</p>
<p class="about">The last 30 transactions</p>
<div class="history">
<p class="abouth">Received</p>
<table>
<tr><th>From</th><th>Amount</th><th>Time</th></tr>
{% for i in received %}
<tr>
<td><a href="{{ i.sender.username }}">{{ i.sender.username }}</a></td>
<td style="text-align: center;">{{ i.amount }}</td>
<td>{{ i.timestamp|date:"Y-m-d H:i" }}</td>
</tr>
{%endfor%}
</table>
</div>
<div class="history">
<p class="abouth">Sent</p>
<table>
<tr><th>To</th><th>Amount</th><th>Time</th></tr>
{% for i in sent %}
<tr>
{% if i.recipient.dataloveprofile %}
<td><a href="{% url profile i.recipient.dataloveprofile.username %}">{{ i.recipient.dataloveprofile.username }}</a></td>
{% else %}
<td>{{ i.recipient.id }}</td>
{% endif %}
<td style="text-align: center;">{{ i.amount }}</td>
<td>{{ i.timestamp|date:"Y-m-d H:i" }}</td>
</tr>
{%endfor%}
</table>
</div>
</div>