diff --git a/netbox_proxbox/templates/netbox_proxbox/home.html b/netbox_proxbox/templates/netbox_proxbox/home.html index 9090aac..6fc568d 100755 --- a/netbox_proxbox/templates/netbox_proxbox/home.html +++ b/netbox_proxbox/templates/netbox_proxbox/home.html @@ -81,6 +81,9 @@

Log Messages

for (let item of elemento) { let td = item.getElementsByTagName("td") + let th = item.getElementsByTagName("th") + + console.log(th[0], th[0].textContent, th[0].innerHTML) if (td[0].id) { let tdID = td[0].id @@ -97,8 +100,15 @@

Log Messages

console.log(response[0][value].release) console.log(response[0][value].repoid) console.log(response[0][value].version) - - td[0].textContent = response[0][value].version + + console.log("th0", th[0]) + if (th[0].textContent === 'Proxmox Version') { + td[0].textContent = `${response[0][value].version}` + } + if (th[0].textContent === 'Proxmox RepoID') { + td[0].textContent = `${response[0][value].repoid}` + } + } //td[0].textContent = JSON.stringify(response[0][value].version) @@ -202,6 +212,10 @@

Proxmox Version + + Proxmox RepoID + +
{% if px.domain %} @@ -295,6 +309,7 @@

Netbox Logo +

This service MUST be running to Proxbox work.
It's the backend which communicates with Proxmox Clusters.