Skip to content

Commit

Permalink
better update available display on ui
Browse files Browse the repository at this point in the history
  • Loading branch information
eshirvana committed Dec 29, 2024
1 parent d122968 commit 27dffae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/server/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
</svg>
</a>
</div>
<div>{{.Version}} {{if .UpdateAvailable}} Update Available: {{.LatestVersion}}{{end}}</div>
<div>{{.Version}} {{if .UpdateAvailable}} (Update Available: <a
href="https://github.com/qdm12/ddns-updater/releases/latest">{{.LatestVersion}}</a>){{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
1 change: 1 addition & 0 deletions internal/server/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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 "v2.9.0"
Expand Down

0 comments on commit 27dffae

Please sign in to comment.