mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
Make hostname links instead of just text
This commit is contained in:
parent
40eb35aab2
commit
894122fb29
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,7 @@
|
|||
let tableBody = "";
|
||||
for (let serviceName in data) {
|
||||
let serviceStatus = "";
|
||||
let hostname =data[serviceName][data[serviceName].length-1].hostname
|
||||
for (let key in data[serviceName]) {
|
||||
let entry = data[serviceName][key];
|
||||
console.log(data[serviceName][key]);
|
||||
|
@ -47,7 +48,7 @@
|
|||
+ "<tr>"
|
||||
+ " <td>" + serviceName + "</td>"
|
||||
+ " <td>" + serviceStatus + "</td>"
|
||||
+ " <td>" + data[serviceName][data[serviceName].length-1].hostname + "</td>"
|
||||
+ " <td><a href=\"//" + hostname + "\">" + hostname + "</a></td>"
|
||||
+ " <td>" + parseInt(data[serviceName][data[serviceName].length-1].duration / 1000000) + "ms </td>"
|
||||
+ "</tr>";
|
||||
}
|
||||
|
@ -61,4 +62,4 @@
|
|||
}, 3000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue