#1071 improve understanding of IP Inventory Last Seen column
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<th>Vendor</th>
|
<th>Vendor</th>
|
||||||
<th class="nd_center-cell">DNS</th>
|
<th class="nd_center-cell">DNS</th>
|
||||||
<th class="nd_center-cell">NetBIOS</th>
|
<th class="nd_center-cell">NetBIOS</th>
|
||||||
<th>Last Used</th>
|
<th>Time Since Last Seen</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
@@ -66,7 +66,7 @@ $(document).ready(function() {
|
|||||||
"data": 'age',
|
"data": 'age',
|
||||||
"render": function(data, type, row, meta) {
|
"render": function(data, type, row, meta) {
|
||||||
if (type == 'display') {
|
if (type == 'display') {
|
||||||
return he.encode(data || 'Never');
|
return he.encode(data || 'Never').replace(/:00$/,' mins').replace(':',' hours ');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// so that sorting works correctly on this column
|
// so that sorting works correctly on this column
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[% USE CSV %]
|
[% 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 %]
|
[% FOREACH row IN results %]
|
||||||
[% mylist = [] %]
|
[% mylist = [] %]
|
||||||
|
|||||||
Reference in New Issue
Block a user