diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html
index a7d9425..132b0f9 100644
--- a/pkg/dashboard/static/index.html
+++ b/pkg/dashboard/static/index.html
@@ -44,6 +44,9 @@
+
+
+
diff --git a/pkg/dashboard/static/scripts.js b/pkg/dashboard/static/scripts.js
index d23d5eb..3ff8065 100644
--- a/pkg/dashboard/static/scripts.js
+++ b/pkg/dashboard/static/scripts.js
@@ -21,6 +21,12 @@ $(function () {
$("#upgradeModal .btn-scan").hide()
}
})
+
+ $.get("/status").fail(function (xhr) {
+ reportError("Failed to get tool version", xhr)
+ }).done(function (data) {
+ fillToolVersion(data)
+ })
})
function initView() {
@@ -195,4 +201,8 @@ function isNewerVersion(oldVer, newVer) {
if (a < b) return false
}
return false
+}
+
+function fillToolVersion(data) {
+ $("#toolVersion").append($('' + data + ''))
}
\ No newline at end of file