#1071 improve understanding of IP Inventory Last Seen column
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = [] %]
|
||||
|
||||
Reference in New Issue
Block a user