From a823cf3e5db369c4d9e2f22e6a0ca4b7d4a9ef11 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Tue, 22 Aug 2023 17:41:38 +0100 Subject: [PATCH] Boltcard view page (#12) --- templates/boltcards/display.html | 146 +++++++++++++++++++++++++++++++ templates/boltcards/index.html | 14 +++ views.py | 25 ++++++ views_api.py | 2 +- 4 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 templates/boltcards/display.html diff --git a/templates/boltcards/display.html b/templates/boltcards/display.html new file mode 100644 index 0000000..96b42f5 --- /dev/null +++ b/templates/boltcards/display.html @@ -0,0 +1,146 @@ +{% extends "public.html" %} {% block toolbar_title %} Boltcard: ${ +card.card_name }{% endblock %} {% block page %} +
+
+ + +
Card Info
+
This card is ${enabled}
+
+ + + + + + + + ${item.label} + ${card[item.value]} + + + Click to copy + + + + + +
+
+
+ + +
Transactions
+
Latest transactions
+
+ + + + + + + + + + + ID: ${hit.id} ${refunds.some(r => r.hit_id == hit.id) ? + '(Refunded)' : null} + IP: ${hit.ip} + + + + ${hit.date} + ${hit.amount} sats + + + + +
+
+
+ +{% endblock %}{% block scripts %} + +{% endblock %} diff --git a/templates/boltcards/index.html b/templates/boltcards/index.html index 2091718..136b8fd 100644 --- a/templates/boltcards/index.html +++ b/templates/boltcards/index.html @@ -42,6 +42,7 @@ {% raw %}