add git commit hash on admin ui

This commit is contained in:
Chris Lu
2026-03-12 23:51:25 -07:00
parent 0443b66a75
commit a6774f0e01
2 changed files with 56 additions and 34 deletions

View File

@@ -290,6 +290,9 @@ templ Layout(view ViewContext, content templ.Component) {
<div class="container-fluid text-center">
<small class="text-muted">
&copy; {fmt.Sprintf("%d", time.Now().Year())} SeaweedFS Admin v{version.VERSION_NUMBER}
if version.COMMIT != "" {
<span class="mx-1">({version.COMMIT})</span>
}
if !strings.Contains(version.VERSION, "enterprise") {
<span class="mx-2">•</span>
<a href="https://seaweedfs.com" target="_blank" class="text-decoration-none">