mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-19 16:24:13 +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)
|
log.Debug("UI configuration", "appConfig", appConfig)
|
||||||
|
version := consts.Version()
|
||||||
|
if version != "dev" {
|
||||||
|
version = "v" + version
|
||||||
|
}
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"AppConfig": string(j),
|
"AppConfig": string(j),
|
||||||
"Version": consts.Version(),
|
"Version": version,
|
||||||
}
|
}
|
||||||
err = t.Execute(w, data)
|
err = t.Execute(w, data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user