added link to git commit from git sha in footer (feature request from @stefan123t)

This commit is contained in:
lumapu 2022-10-22 23:35:56 +02:00
parent 1d385b1d60
commit 2a3c267906
7 changed files with 34 additions and 13 deletions

View file

@ -74,7 +74,9 @@
+ ("0"+sec).substr(-2);
if(false == mIntervalSet) {
document.getElementById("version").innerHTML = "Git SHA: " + obj["build"] + " :: " + obj["version"];
document.getElementById("version").appendChild(
link("https://github.com/lumapu/ahoy/commits/" + obj["build"], "Git SHA: " + obj["build"] + " :: " + obj["version"], "_blank")
);
window.setInterval("getAjax('/api/system', parseSys)", 10000);
mIntervalSet = true;
}