fix to IP Inventory for nodes with archive records.
also change column Device to be named Node.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
* Fix for crash when selecting Last Change column in device ports view
|
||||
* Fix IP Inventory Report to work without daterange
|
||||
* Fix "list IPs never seen" to work without daterange in IP Inventory Report
|
||||
* Correct "Archive" status of nodes in IP Inventory Report
|
||||
|
||||
2.023002 - 2014-02-17
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ get '/ajax/content/report/ipinventory' => require_login sub {
|
||||
'ip', 'dns', 'time_last', 'time_first',
|
||||
'active', 'node', 'age'
|
||||
],
|
||||
order_by => [{-asc => 'ip'}, {-desc => 'active'}],
|
||||
}
|
||||
)->as_query;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Device</th>
|
||||
<th>Node</th>
|
||||
<th class="nd_center-cell">DNS</th>
|
||||
<th class="nd_center-cell">Last Used</th>
|
||||
<th class="nd_center-cell">First Discovered</th>
|
||||
@@ -11,7 +11,8 @@
|
||||
[% FOREACH row IN results %]
|
||||
<tr>
|
||||
[% IF row.time_last && row.node %]
|
||||
<td><a href="[% search_node %]&q=[% row.ip | uri %]">[% row.ip | html_entity %]</a>
|
||||
<td><a href="[% search_node %]&q=[% row.ip | uri %][% '&archived=on' IF NOT row.active %]">
|
||||
[% row.ip | html_entity %]</a>
|
||||
[% ' <i class="icon-book text-warning"></i> ' IF NOT row.active %]
|
||||
</td>
|
||||
[% ELSIF row.time_last %]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[% USE CSV %]
|
||||
[% CSV.dump([ 'Device' 'DNS' 'Time Last' 'Time First' ]) %]
|
||||
[% CSV.dump([ 'Node' 'DNS' 'Time Last' 'Time First' ]) %]
|
||||
|
||||
[% FOREACH row IN results %]
|
||||
[% mylist = [] %]
|
||||
|
||||
Reference in New Issue
Block a user