From 7101a5d1eece97fefb3e452817460c9fd678397c Mon Sep 17 00:00:00 2001 From: tecnovert Date: Thu, 8 Dec 2022 16:02:53 +0200 Subject: [PATCH] ui: Switch offers offer/bid amounts when sent. --- basicswap/templates/offer.html | 12 +++---- basicswap/templates/offers.html | 36 ++++++++++--------- basicswap/ui/page_offers.py | 2 +- .../basicswap/extended/test_xmr_persistent.py | 2 ++ 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/basicswap/templates/offer.html b/basicswap/templates/offer.html index c54cd72..0a12e83 100644 --- a/basicswap/templates/offer.html +++ b/basicswap/templates/offer.html @@ -107,23 +107,23 @@ {{ data.state }} - {% if data.sent %}You Send{% else %}You Send{% endif %} + {% if data.sent %}You Send{% else %}You Get{% endif %} {{ data.coin_from }} {{ data.coin_from }} - {% if data.sent %}You Get{% else %}You Get{% endif %} + {% if data.sent %}You Get{% else %}You Send{% endif %} {{ data.coin_to }} {{ data.coin_to }} - Amount You Get + Amount Offerer Sends {{ data.amt_from }} {{ data.tla_from }} - Amount You Send + Amount Bidder Send {{ data.amt_to }} {{ data.tla_to }} @@ -202,7 +202,7 @@ Revoked {{ data.was_revoked }} - {% if data.sent == 'True' %} + {% if data.sent %} Auto Accept Strategy @@ -381,7 +381,7 @@ New Bid - {% if data.sent == 'True' %} + {% if data.sent %}