webapi: Display testnet/simnet in homepage banner.

Don't hardcode the banner to testnet because it is also displayed for
simnet.
This commit is contained in:
jholdstock 2023-09-06 11:47:00 +01:00 committed by Jamie Holdstock
parent 939f094104
commit 030a4c6874

View File

@ -20,7 +20,7 @@
{{ if not (eq .WebApiCfg.NetParams.Name "mainnet") }}
<div class="alert alert-warning mb-3">
This Voting Service Provider is running on testnet.
This Voting Service Provider is running on {{ .WebApiCfg.NetParams.Name }}.
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 }}