This commit is contained in:
Oliver Gorwits
2021-08-14 13:28:13 +01:00
parent f3478571a3
commit 2498d9766b
8 changed files with 26 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
BEGIN;
ALTER TABLE device ADD COLUMN "chassis_id" text;
COMMIT;

View File

@@ -62,6 +62,10 @@
<td>Serial Number</td>
<td>[% d.serial | html_entity %]</td>
</tr>
<tr>
<td>Chassis ID</td>
<td>[% d.chassis_id | html_entity %]</td>
</tr>
<tr>
<td>Description</td>
<td>[% d.description | html_entity | html_line_break %]</td>

View File

@@ -7,7 +7,7 @@
<th>Model</th>
<th>OS Version</th>
<th>Management IP</th>
<th>Serial</th>
<th>Serial / Chassis ID</th>
<th>First Seen</th>
<th>Last Discovered</th>
</tr>
@@ -53,7 +53,7 @@ $(document).ready(function() {
}, {
"data": 'serial',
"render": function(data, type, row, meta) {
return he.encode(data || '');
return he.encode(row.serial || '') + (row.chassis_id ? ('<br />' + he.encode(row.chassis_id || '')) : '');
}
}, {
"data": 'first_seen_stamp',