diff --git a/items/templatetags/determine_platform_fee.py b/items/templatetags/determine_platform_fee.py index 3315e6c..424ebe8 100644 --- a/items/templatetags/determine_platform_fee.py +++ b/items/templatetags/determine_platform_fee.py @@ -1,4 +1,3 @@ -from math import ceil from django import template from django.conf import settings diff --git a/sales/templatetags/__init__.py b/sales/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sales/templatetags/search_block_explorer.py b/sales/templatetags/search_block_explorer.py new file mode 100644 index 0000000..d6eef3b --- /dev/null +++ b/sales/templatetags/search_block_explorer.py @@ -0,0 +1,10 @@ +from django import template +from django.conf import settings + + +register = template.Library() + +@register.filter(is_safe=True) +def search_block_explorer(param): + search_url = f'{settings.BLOCK_EXPLORER}search?value={param}' + return search_url diff --git a/web/templates/sales/get_sale/item_received.html b/web/templates/sales/get_sale/item_received.html index d6d8a26..28e2093 100644 --- a/web/templates/sales/get_sale/item_received.html +++ b/web/templates/sales/get_sale/item_received.html @@ -1,3 +1,4 @@ +{% load search_block_explorer %} {% if request.user == sale.bid.bidder %}
Hey {{ sale.bid.bidder.username }},
It sounds like your order was successful. The seller will be sent their funds from the transaction out of the escrow wallet. You are good to go!
@@ -21,7 +22,7 @@Network Fee (XMR): {{ sale.network_fee_xmr }}
Total Payout (XMR): {{ total_seller_payout }}
Payout Address: {{ sale.item.payout_address }}
-Payout Transaction ID: {{ sale.seller_payout_transaction }}
+Payout Transaction ID: {{ sale.seller_payout_transaction }}
If you found the site useful and had a good experience, please consider sending a tip to the developer address provided at the bottom of the page.
Thanks for using {{ site_meta.name }}!
diff --git a/xmrauctions/settings.py b/xmrauctions/settings.py index 5ba1f04..5828bd4 100644 --- a/xmrauctions/settings.py +++ b/xmrauctions/settings.py @@ -29,6 +29,11 @@ ESCROW_PERIOD_DAYS = os.environ.get('ESCROW_PERIOD_DAYS', 30) PLATFORM_FEE_PERCENT = os.environ.get('PLATFORM_FEE_PERCENT', 0) BLOCK_CONFIRMATIONS_RCV = os.environ.get('BLOCK_CONFIRMATIONS_RCV', 3) +if DEBUG: + BLOCK_EXPLORER = 'https://community.xmr.to/explorer/stagenet/' +else: + BLOCK_EXPLORER = 'https://community.xmr.to/explorer/mainnet/' + # Application definition