Archivdaten gefixt

This commit is contained in:
ecki
2026-05-10 17:19:48 +02:00
parent ff27f8b498
commit 0cec7e5dbe
2 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -148,10 +148,10 @@ Domains jährlich: <span id="costDomain">0</span> €<br>
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Produkt</th>
<th>Provider</th>
<th>IPs</th>
<th>CPU</th>
<th>RAM</th>
<th>Disk</th>
+18 -1
View File
@@ -217,11 +217,28 @@ window.loadCancelled = async function(){
data.forEach(r => {
const tr = document.createElement("tr")
const ips = Array.isArray(r.ips)
? r.ips.map(ip => {
const cls = (ip.type || "").toLowerCase().includes("public")
? "ip public"
: "ip"
return "<span class='" + cls + "'>" +
(ip.type || "") + " " + ip.ip +
"</span>"
}).join("")
: ""
tr.innerHTML = `
<td>${r.name}</td>
<td>
<span style="cursor:pointer;color:#1e3a8a;font-weight:bold"
onclick='openServerDetail(${JSON.stringify(r)})'>
${r.name}
</span>
</td>
<td>${r.produkt || ""}</td>
<td>${r.provider || ""}</td>
<td>${ips}</td>
<td>${r.cpu || ""}</td>
<td>${r.ram || ""}</td>
<td>${r.disk || ""}</td>