From cf95765783df2c87596ba231e503630d710c2145 Mon Sep 17 00:00:00 2001 From: lance Date: Thu, 23 Jan 2020 11:19:44 -0800 Subject: [PATCH] add block confirmation count to global context --- web/templates/sales/get_sale/no_payment_received.html | 2 +- xmrauctions/context_processors.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/templates/sales/get_sale/no_payment_received.html b/web/templates/sales/get_sale/no_payment_received.html index 71df06a..7735280 100644 --- a/web/templates/sales/get_sale/no_payment_received.html +++ b/web/templates/sales/get_sale/no_payment_received.html @@ -13,7 +13,7 @@
  • {{ tx.transaction.hash }} ({{ tx.amount }} XMR)
  • {% endfor %} -

    Once the payments are confirmed for 10 blocks the transaction will continue.

    +

    Once the payments are confirmed for {{ site_meta.block_confirmations }} blocks the transaction will continue.

    {% else %}
    diff --git a/xmrauctions/context_processors.py b/xmrauctions/context_processors.py index 2a627f0..b67d7f8 100644 --- a/xmrauctions/context_processors.py +++ b/xmrauctions/context_processors.py @@ -8,6 +8,7 @@ def inject_site_meta(request): 'name': settings.SITE_NAME, 'escrow_period': settings.ESCROW_PERIOD_DAYS, 'tip_address': settings.TIP_WALLET_ADDRESS, - 'platform_address': settings.PLATFORM_WALLET_ADDRESS + 'platform_address': settings.PLATFORM_WALLET_ADDRESS, + 'block_confirmations': settings.BLOCK_CONFIRMATIONS_RCV } }