* Remove static cfg values from GUI cache. Theres no need for these values to be copied into the cache when templates could simply access the config struct directly. This also changes the cache accessor so it returns a copy of the cache rather than a pointer, which removes a potential race. * Rename and move cache. Cache code was previous in `homepage.go`, but its used in multiple places and not just on the homepage. Its enough code to go into its own dedicated `cache.go`.
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
{{ template "header" . }}
|
|
|
|
<div class="vsp-overview pt-4 pb-3 mb-3">
|
|
<div class="container">
|
|
|
|
{{ if .WebApiCfg.VspClosed }}
|
|
<div class="alert alert-danger">
|
|
<h4 class="alert-heading mb-3">
|
|
This Voting Service Provider is closed
|
|
</h4>
|
|
<p>
|
|
{{ .WebApiCfg.VspClosedMsg }}
|
|
</p>
|
|
<p>
|
|
A closed VSP will still vote on tickets with already paid fees, but will not accept new any tickets.
|
|
Visit <a href="https://decred.org/vsp/" class="alert-link" target="_blank" rel="noopener noreferrer">decred.org</a> to find a new VSP.
|
|
</p>
|
|
</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,
|
|
and allows Decred ticket holders to use these wallets to vote their tickets in exchange for a small fee.
|
|
VSPs are completely non-custodial - they never hold, manage, or have access to any user funds.
|
|
Visit <a href="https://docs.decred.org/proof-of-stake/overview/" target="_blank" rel="noopener noreferrer">docs.decred.org</a>
|
|
to find out more about VSPs, tickets, and voting.
|
|
</p>
|
|
|
|
{{ template "vsp-stats" . }}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{{ template "footer" . }}
|