mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 23:41:06 +03:00
added "branchVersion" to origin table (if matrix is present)
This commit is contained in:
parent
486ebdb4fb
commit
04bbca1a3a
@ -33,11 +33,12 @@ async function fetchOriginsWithLeases(element) {
|
|||||||
let tbody = document.createElement('thead');
|
let tbody = document.createElement('thead');
|
||||||
x.sort((a, b) => a.hostname.localeCompare(b.hostname)).forEach((o) => {
|
x.sort((a, b) => a.hostname.localeCompare(b.hostname)).forEach((o) => {
|
||||||
let row = document.createElement('tr');
|
let row = document.createElement('tr');
|
||||||
|
const branchVersion= o.$driver ? `(<code>${o.$driver.branch_version}</code>) ` : ''
|
||||||
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} (${o.os_version})</td>
|
<td>${o.os_platform} (${o.os_version})</td>
|
||||||
<td>${o.guest_driver_version}</td>
|
<td>${branchVersion}<code>${o.guest_driver_version}</code></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);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user