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:
parent
50c343e177
commit
1dbcb785df
@ -18,6 +18,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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>
|
<h1>VSP Overview</h1>
|
||||||
|
|
||||||
<p class="pt-1 pb-2">A Voting Service Provider (VSP) maintains a pool of always-online voting wallets,
|
<p class="pt-1 pb-2">A Voting Service Provider (VSP) maintains a pool of always-online voting wallets,
|
||||||
|
|||||||
@ -25,11 +25,6 @@
|
|||||||
<div class="stat-value">{{ .WebApiCfg.VSPFee }}%</div>
|
<div class="stat-value">{{ .WebApiCfg.VSPFee }}%</div>
|
||||||
</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="col-6 col-sm-4 col-lg-2 py-3">
|
||||||
<div class="stat-title">Network Proportion</div>
|
<div class="stat-title">Network Proportion</div>
|
||||||
<div class="stat-value">{{ float32ToPercent .WebApiCache.NetworkProportion }}</div>
|
<div class="stat-value">{{ float32ToPercent .WebApiCache.NetworkProportion }}</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user