#24 Show device age in device search view

This commit is contained in:
Oliver Gorwits
2018-03-10 11:09:04 +00:00
parent 66e3d2d64e
commit a2269c469f
6 changed files with 39 additions and 10 deletions

View File

@@ -2,13 +2,13 @@
<thead>
<tr>
<th>Device</th>
<th>Contact</th>
<th>Location</th>
<th>System Name</th>
<th>Model</th>
<th>OS Version</th>
<th>Management IP</th>
<th>Serial</th>
<th>First Seen</th>
<th>Last Discovered</th>
</tr>
</thead>
@@ -24,11 +24,6 @@ $(document).ready(function() {
"render": function(data, type, row, meta) {
return '<a href="[% uri_for('/device') %]?q=' + encodeURIComponent(data) + '">' + he.encode(row.dns || row.name || row.ip) + '</a>';
}
}, {
"data": 'contact',
"render": function(data, type, row, meta) {
return he.encode(data || '');
}
}, {
"data": 'location',
"render": function(data, type, row, meta) {
@@ -59,6 +54,11 @@ $(document).ready(function() {
"render": function(data, type, row, meta) {
return he.encode(data || '');
}
}, {
"data": 'first_seen_stamp',
"render": function(data, type, row, meta) {
return he.encode(data || '');
}
}, {
"data": 'last_discover_stamp',
"render": function(data, type, row, meta) {