Skip to content

Commit

Permalink
simpler version display
Browse files Browse the repository at this point in the history
  • Loading branch information
eshirvana committed Dec 29, 2024
1 parent fd336c9 commit d122968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/server/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</svg>
</a>
</div>
<div>Current Version: {{.Version}} {{if .UpdateAvailable}} Update Available: {{.LatestVersion}}{{end}}</div>
<div>{{.Version}} {{if .UpdateAvailable}} Update Available: {{.LatestVersion}}{{end}}</div>
<div>by <a href="https://github.com/qdm12">Quentin McGaw</a> / UI reworked by <a
href="https://github.com/fuse314">Gottfried Mayer</a></div>
</footer>
Expand Down
3 changes: 1 addition & 2 deletions internal/server/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ func getLatestRelease() (string, error) {
return release.TagName, nil
}

// Add a function to get the current version
func getCurrentVersion() string {
// Replace with actual logic to get the current version
return "v1.0.0"
return "v2.9.0"
}

0 comments on commit d122968

Please sign in to comment.