diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index a8109fb..e073be2 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1248,9 +1248,13 @@ import { buildPopup as _buildPopup } from "./popup";
.then(function (data) {
if (data.version && data.version !== "dev" && data.version !== "unknown") {
var el = document.getElementById("app-version");
+ var link = document.getElementById("app-version-link") as HTMLAnchorElement;
if (el) {
el.textContent = data.version;
- el.parentElement.style.display = "";
+ if (link && /^[0-9a-f]{7,40}$/.test(data.version)) {
+ link.href = "https://git.kida.io/marcus/DMRmap/commit/" + data.version;
+ }
+ (el.closest(".app-version") as HTMLElement).style.display = "";
}
}
})
diff --git a/frontend/static/index.html b/frontend/static/index.html
index 9da7655..ddbd785 100644
--- a/frontend/static/index.html
+++ b/frontend/static/index.html
@@ -73,7 +73,7 @@
Routing by OSRM.
Map by OpenStreetMap.
Built by DA6KM.
- Impressum · Datenschutz · Source
+ Impressum · Datenschutz · Source