2 changed files with 0 additions and 42 deletions
@ -1,36 +0,0 @@
@@ -1,36 +0,0 @@
|
||||
{% extends 'base.html.twig' %} |
||||
|
||||
{% block title %}Credit Transactions{% endblock %} |
||||
|
||||
{% block body %} |
||||
<h1>Credit Transactions</h1> |
||||
|
||||
<table> |
||||
<thead> |
||||
<tr> |
||||
<th>ID</th> |
||||
<th>NPub</th> |
||||
<th>Type</th> |
||||
<th>Amount</th> |
||||
<th>Reason</th> |
||||
<th>Timestamp</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
{% for tx in transactions %} |
||||
<tr> |
||||
<td>{{ tx.id }}</td> |
||||
<td><span title="{{ tx.npub }}">{{ tx.npub|shortenNpub }}</span></td> |
||||
<td>{{ tx.type }}</td> |
||||
<td>{{ tx.amount }}</td> |
||||
<td>{{ tx.reason ?: '—' }}</td> |
||||
<td>{{ tx.createdAt|date('Y-m-d H:i:s') }}</td> |
||||
</tr> |
||||
{% else %} |
||||
<tr> |
||||
<td colspan="6">No transactions found.</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
{% endblock %} |
||||
Loading…
Reference in new issue