hub v0.3.2: Show Hub version in page footers
Add hubVersion template function via closure in web.New(). Version is passed from main.go (set via ldflags at build time) and displayed in the footer of all 6 page templates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>Felhom Hub — Customer Management</p>
|
||||
<p>Felhom Hub {{hubVersion}} — Customer Management</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
</form>
|
||||
|
||||
<footer>
|
||||
<p>Felhom Hub — Configuration Management</p>
|
||||
<p>Felhom Hub {{hubVersion}} — Configuration Management</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
{{end}}
|
||||
|
||||
<footer>
|
||||
<p>Felhom Hub — Customer Management</p>
|
||||
<p>Felhom Hub {{hubVersion}} — Customer Management</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
{{end}}
|
||||
|
||||
<footer>
|
||||
<p>Auto-refreshes every 60 seconds · <a href="/">Felhom Hub</a></p>
|
||||
<p>Auto-refreshes every 60 seconds · <a href="/">Felhom Hub</a> {{hubVersion}}</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -537,7 +537,7 @@
|
||||
{{end}}
|
||||
|
||||
<footer>
|
||||
{{if .HasReports}}<p>Auto-refreshes every 60 seconds · {{end}}<a href="/">Felhom Hub</a>{{if .HasReports}}</p>{{end}}
|
||||
{{if .HasReports}}<p>Auto-refreshes every 60 seconds · {{end}}<a href="/">Felhom Hub</a> {{hubVersion}}{{if .HasReports}}</p>{{end}}
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
{{end}}
|
||||
|
||||
<footer>
|
||||
<p>Auto-refreshes every 60 seconds · Felhom Hub</p>
|
||||
<p>Auto-refreshes every 60 seconds · Felhom Hub {{hubVersion}}</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user