mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-23 23:20:57 +03:00
Add a v
prefix to the version in the description
This commit is contained in:
parent
67da83c84d
commit
ddb30ceb11
@ -43,9 +43,13 @@ func ServeIndex(ds model.DataStore, fs http.FileSystem) http.HandlerFunc {
|
||||
}
|
||||
|
||||
log.Debug("UI configuration", "appConfig", appConfig)
|
||||
version := consts.Version()
|
||||
if version != "dev" {
|
||||
version = "v" + version
|
||||
}
|
||||
data := map[string]interface{}{
|
||||
"AppConfig": string(j),
|
||||
"Version": consts.Version(),
|
||||
"Version": version,
|
||||
}
|
||||
err = t.Execute(w, data)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user