fix to IP Inventory for nodes with archive records.

also change column Device to be named Node.
This commit is contained in:
Oliver Gorwits
2014-02-22 11:24:18 +00:00
parent 6eb88bc443
commit bb38f40816
4 changed files with 6 additions and 3 deletions

View File

@@ -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>
[% '&nbsp;<i class="icon-book text-warning"></i>&nbsp;' IF NOT row.active %]
</td>
[% ELSIF row.time_last %]

View File

@@ -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 = [] %]