Serve trade data from DB

This commit is contained in:
2023-03-12 12:52:34 +00:00
parent 1a34121da6
commit 70c8bd413f
4 changed files with 27 additions and 20 deletions

View File

@@ -19,7 +19,6 @@
<th>amount</th>
<th>crypto</th>
<th>provider</th>
<th>type</th>
<th>actions</th>
</thead>
{% for item in trade_map.values %}
@@ -27,7 +26,7 @@
<td>
<a
class="has-text-grey"
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{ item.data.contact_id }}');">
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{ item.contact_id }}');">
<span class="icon" data-tooltip="Copy to clipboard">
<i class="fa-solid fa-copy" aria-hidden="true"></i>
</span>
@@ -41,13 +40,10 @@
<code>{{ item.reference }}</code>
</a>
</td>
<td data-tooltip="{{ item.data.buyer.name }}
Trades: {{ item.data.buyer.trade_count }}
Last online: {{ item.data.buyer.last_online }}">{{ item.data.buyer.username }}</td>
<td>{{ item.data.amount }} {{ item.data.currency }}</td>
<td>{{ item.data.amount_xmr }} XMR</td>
<td>{{ item.data.advertisement.payment_method }}</td>
<td>{{ item.data.advertisement.trade_type }}</td>
<td>{{ item.buyer }}</td>
<td>{{ item.amount_fiat }} {{ item.currency }}</td>
<td>{{ item.amount_crypto }} XMR</td>
<td>{{ item.provider }}</td>
<td>
<div class="buttons">
<button