improve BTCPay server down detection and handling

This commit is contained in:
2022-02-22 14:04:38 -06:00
parent 2f9d941796
commit 32cb14f979
6 changed files with 52 additions and 20 deletions

View File

@ -47,7 +47,15 @@
<ul><li>notice: stripe will load nonfree javascript </li></ul>
</li>
{% if btcpay_enabled %}
<li><a href="/payment/btcpay">Add funds with Bitcoin/Litecoin/Monero (btcpay)</a></li>
{% if btcpay_is_working %}
<li><a href="/payment/btcpay">Add funds with Bitcoin/Litecoin/Monero (btcpay)</a></li>
{% else %}
<li>
<span class="disabled">Add funds with Bitcoin/Litecoin/Monero (btcpay)</span>
<span class="error"> ERROR: the BTCPay server cannot be reached</span>
</li>
{% endif %}
{% endif %}
<li>Cash: email <a href="mailto:treasurer@cyberia.club">treasurer@cyberia.club</a></li>

View File

@ -20,11 +20,7 @@
type="text"
/>
</span>
<input type="submit" value="Pay with BtcPay"></button>
</div>
<div class="row">
<div>
<p>Our BTCPay Server instance is finally back online 🥳</p>
<input type="submit" value="Pay with BtcPay"></input>
</div>
</form>
</div>