#1071 improve understanding of IP Inventory Last Seen column

This commit is contained in:
Oliver Gorwits
2023-08-31 21:46:27 +01:00
parent 791e97b746
commit 3912134306
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
<th>Vendor</th>
<th class="nd_center-cell">DNS</th>
<th class="nd_center-cell">NetBIOS</th>
<th>Last Used</th>
<th>Time Since Last Seen</th>
</tr>
</thead>
</table>
@@ -66,7 +66,7 @@ $(document).ready(function() {
"data": 'age',
"render": function(data, type, row, meta) {
if (type == 'display') {
return he.encode(data || 'Never');
return he.encode(data || 'Never').replace(/:00$/,' mins').replace(':',' hours ');
}
else {
// so that sorting works correctly on this column

View File

@@ -1,5 +1,5 @@
[% USE CSV %]
[% CSV.dump([ 'Node' 'MAC Address' 'Vendor' 'DNS' 'NetBIOS' 'Last Used' ]) %]
[% CSV.dump([ 'Node' 'MAC Address' 'Vendor' 'DNS' 'NetBIOS' 'Time Since Last Seen' ]) %]
[% FOREACH row IN results %]
[% mylist = [] %]