webapi: Display testnet as a banner.

A banner notice is now displayed when a VSP is running on testnet
rather than including it in the row of statistics.
This commit is contained in:
jholdstock 2023-08-26 10:57:01 +01:00 committed by Jamie Holdstock
parent 50c343e177
commit 1dbcb785df
2 changed files with 7 additions and 5 deletions

View File

@ -18,6 +18,13 @@
</div>
{{ end }}
{{ if not (eq .WebApiCfg.NetParams.Name "mainnet") }}
<div class="alert alert-warning mb-3">
This Voting Service Provider is running on testnet.
Visit <a href="https://decred.org/vsp/" class="alert-link" target="_blank" rel="noopener noreferrer">decred.org</a> to find a list of mainnet VSPs.
</div>
{{ end }}
<h1>VSP Overview</h1>
<p class="pt-1 pb-2">A Voting Service Provider (VSP) maintains a pool of always-online voting wallets,

View File

@ -25,11 +25,6 @@
<div class="stat-value">{{ .WebApiCfg.VSPFee }}%</div>
</div>
<div class="col-6 col-sm-4 col-lg-2 py-3">
<div class="stat-title">Network</div>
<div class="stat-value">{{ .WebApiCfg.NetParams.Name }}</div>
</div>
<div class="col-6 col-sm-4 col-lg-2 py-3">
<div class="stat-title">Network Proportion</div>
<div class="stat-value">{{ float32ToPercent .WebApiCache.NetworkProportion }}</div>