Add a v prefix to the version in the description
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user