From 1dbcb785df610948dfba05f28ef8d3e7f24530ac Mon Sep 17 00:00:00 2001 From: jholdstock Date: Sat, 26 Aug 2023 10:57:01 +0100 Subject: [PATCH] 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. --- webapi/templates/homepage.html | 7 +++++++ webapi/templates/vsp-stats.html | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webapi/templates/homepage.html b/webapi/templates/homepage.html index 0a2d1e6..4e8e804 100644 --- a/webapi/templates/homepage.html +++ b/webapi/templates/homepage.html @@ -18,6 +18,13 @@ {{ end }} + {{ if not (eq .WebApiCfg.NetParams.Name "mainnet") }} +
+ This Voting Service Provider is running on testnet. + Visit decred.org to find a list of mainnet VSPs. +
+ {{ end }} +

VSP Overview

A Voting Service Provider (VSP) maintains a pool of always-online voting wallets, diff --git a/webapi/templates/vsp-stats.html b/webapi/templates/vsp-stats.html index 38dcb01..3db2fef 100644 --- a/webapi/templates/vsp-stats.html +++ b/webapi/templates/vsp-stats.html @@ -25,11 +25,6 @@

{{ .WebApiCfg.VSPFee }}%
-
-
Network
-
{{ .WebApiCfg.NetParams.Name }}
-
-
Network Proportion
{{ float32ToPercent .WebApiCache.NetworkProportion }}