* 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`.
28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
{{ define "footer" }}
|
|
|
|
</div> <!-- page-content -->
|
|
|
|
<footer class="row m-0">
|
|
<div class="col-md-8 col-12 d-flex justify-content-center align-items-center">
|
|
<p class="py-4 m-0">
|
|
<strong>Stats updated:</strong> {{ .WebApiCache.UpdateTime }}
|
|
<br />
|
|
<strong>Support:</strong> <a href="mailto:{{ .WebApiCfg.SupportEmail }}" rel="noopener noreferrer">{{ .WebApiCfg.SupportEmail }}</a>
|
|
<br />
|
|
<strong>VSP public key:</strong> <span class="code">{{ .WebApiCache.PubKey }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="col-md-4 col-12 footer__credit d-flex justify-content-center align-items-center">
|
|
<p class="py-4 m-0">
|
|
Decred Developers | 2020-2021
|
|
<br />
|
|
The source code is available on <a href="https://github.com/decred/vspd" target="_blank" rel="noopener noreferrer">GitHub</a>
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|
|
{{ end }}
|