Compare commits
3 Commits
d06e100bef
...
f199800040
Author | SHA1 | Date | |
---|---|---|---|
f199800040 | |||
ca96ae08a7 | |||
49279b6b66 |
@ -31,13 +31,13 @@ async function fetchOriginsWithLeases(element) {
|
|||||||
</tr>`
|
</tr>`
|
||||||
table.appendChild(thead)
|
table.appendChild(thead)
|
||||||
let tbody = document.createElement('thead');
|
let tbody = document.createElement('thead');
|
||||||
x.forEach((o) => {
|
x.sort((a, b) => a.hostname.localeCompare(b.hostname)).forEach((o) => {
|
||||||
let row = document.createElement('tr');
|
let row = document.createElement('tr');
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
<td><code>${o.origin_ref}</code></td>
|
<td><code>${o.origin_ref}</code></td>
|
||||||
<td>${o.hostname}</td>
|
<td>${o.hostname}</td>
|
||||||
<td>${o.os_platform}</td>
|
<td>${o.os_platform} (${o.os_version})</td>
|
||||||
<td>${o.os_version}</td>
|
<td>${o.guest_driver_version}</td>
|
||||||
<td>${o.leases.map(x => `<code title="expires: ${x.lease_expires}">${x.lease_ref}</code>`).join(', ')}</td>`
|
<td>${o.leases.map(x => `<code title="expires: ${x.lease_expires}">${x.lease_ref}</code>`).join(', ')}</td>`
|
||||||
tbody.appendChild(row);
|
tbody.appendChild(row);
|
||||||
})
|
})
|
||||||
@ -70,7 +70,7 @@ async function fetchLeases(element) {
|
|||||||
</tr>`
|
</tr>`
|
||||||
table.appendChild(thead)
|
table.appendChild(thead)
|
||||||
let tbody = document.createElement('thead');
|
let tbody = document.createElement('thead');
|
||||||
x.forEach((o) => {
|
x.sort((a, b) => new Date(a.lease_expires) - new Date(b.lease_expires)).forEach((o) => {
|
||||||
let row = document.createElement('tr');
|
let row = document.createElement('tr');
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
<td><code>${o.lease_ref}</code></td>
|
<td><code>${o.lease_ref}</code></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user