version 1.0.6, show version in footer

This commit is contained in:
Christoph Haas 2021-04-07 20:07:40 +02:00
parent 5199c8674d
commit 96215c4f0e
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<footer class="page-footer mt-auto"> <footer class="page-footer mt-auto">
<div class="container mt-3"> <div class="container mt-3">
<p class="text-muted">Copyright © {{ $.Static.CompanyName }} {{$.Static.Year}} <a class="scroll-to-top" href="#page-top"><i class="fas fa-angle-up"></i></a></p> <p class="text-muted">Copyright © {{ $.Static.CompanyName }} {{$.Static.Year}}, version {{$.Static.Version}} <a class="float-right scroll-to-top" href="#page-top"><i class="fas fa-angle-up"></i></a></p>
</div> </div>
</footer> </footer>

View File

@ -69,6 +69,7 @@ type StaticData struct {
WebsiteLogo string WebsiteLogo string
CompanyName string CompanyName string
Year int Year int
Version string
} }
type Server struct { type Server struct {
@ -253,6 +254,7 @@ func (s *Server) getStaticData() StaticData {
WebsiteLogo: "/img/header-logo.png", WebsiteLogo: "/img/header-logo.png",
CompanyName: s.config.Core.CompanyName, CompanyName: s.config.Core.CompanyName,
Year: time.Now().Year(), Year: time.Now().Year(),
Version: Version,
} }
} }

View File

@ -1,3 +1,3 @@
package server package server
var Version = "1.0.5" var Version = "1.0.6"