Add a `v` prefix to the version in the description

This commit is contained in:
Deluan 2020-07-26 10:52:20 -04:00
parent 67da83c84d
commit ddb30ceb11
1 changed files with 5 additions and 1 deletions

View File

@ -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 {