mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
version 1.0.6, show version in footer
This commit is contained in:
parent
5199c8674d
commit
96215c4f0e
@ -1,5 +1,5 @@
|
||||
<footer class="page-footer mt-auto">
|
||||
<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>
|
||||
</footer>
|
@ -69,6 +69,7 @@ type StaticData struct {
|
||||
WebsiteLogo string
|
||||
CompanyName string
|
||||
Year int
|
||||
Version string
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
@ -253,6 +254,7 @@ func (s *Server) getStaticData() StaticData {
|
||||
WebsiteLogo: "/img/header-logo.png",
|
||||
CompanyName: s.config.Core.CompanyName,
|
||||
Year: time.Now().Year(),
|
||||
Version: Version,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
package server
|
||||
|
||||
var Version = "1.0.5"
|
||||
var Version = "1.0.6"
|
||||
|
Loading…
Reference in New Issue
Block a user