Archivdaten gefixt
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user