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 }} |
- {% if data.sent %}You Get{% else %}You Get{% endif %} |
+ {% if data.sent %}You Get{% else %}You Send{% endif %} |
{{ 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 %}
|
- {% endif %}
{{ o[4] }} |
+ {% endif %}
{% if o[9]==true %}
{{ o[2] }} |
+ {{ o[4] }} |
{% else %}
{{ o[3] }}
- {% endif %}
{{ o[5] }} |
+ {% endif %}
{{ o[6] }} |
{% if o[9]==true %}Edit{% else %}Swap{% endif %} |
diff --git a/basicswap/ui/page_offers.py b/basicswap/ui/page_offers.py
index 41529e1..bbfc40c 100644
--- a/basicswap/ui/page_offers.py
+++ b/basicswap/ui/page_offers.py
@@ -493,7 +493,7 @@ def page_offer(self, url_split, post_string):
'addr_to': 'Public' if offer.addr_to == swap_client.network_addr else offer.addr_to,
'created_at': offer.created_at,
'expired_at': offer.expire_at,
- 'sent': 'True' if offer.was_sent else 'False',
+ 'sent': offer.was_sent,
'was_revoked': 'True' if offer.active_ind == 2 else 'False',
'show_bid_form': show_bid_form,
'amount_negotiable': offer.amount_negotiable,
diff --git a/tests/basicswap/extended/test_xmr_persistent.py b/tests/basicswap/extended/test_xmr_persistent.py
index df70415..d1e2a0e 100644
--- a/tests/basicswap/extended/test_xmr_persistent.py
+++ b/tests/basicswap/extended/test_xmr_persistent.py
@@ -11,6 +11,8 @@ export TEST_PATH=/tmp/test_persistent
mkdir -p ${TEST_PATH}/bin
cp -r ~/tmp/basicswap_bin/* ${TEST_PATH}/bin
export PYTHONPATH=$(pwd)
+export XMR_RPC_USER=xmr_user
+export XMR_RPC_PWD=xmr_pwd
python tests/basicswap/extended/test_xmr_persistent.py
"""