[#74] Device Name / DNS mismatches report

This commit is contained in:
Eric A. Miller
2014-01-26 20:50:01 -05:00
parent 00b370ed0e
commit e23c30f0be
6 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
<thead>
<tr>
<th>Name</th>
<th>DNS</th>
<th>IP Address</th>
<th>Contact</th>
<th>Location</th>
</tr>
</thead>
</tbody>
[% WHILE (row = results.next) %]
<tr>
<td><a href="[% search_device %]&q=[% row.dns || row.ip | uri %]">
[% row.name | html_entity %]</a>
<td>[% row.dns | html_entity %]</td>
<td>[% row.ip | html_entity %]</td>
<td>[% row.contact | html_entity %]</td>
<td>[% row.location | html_entity %]</td>
</tr>
[% END %]
</tbody>
</table>

View File

@@ -0,0 +1,13 @@
[% USE CSV -%]
[% CSV.dump([ 'Name' 'DNS' 'IP Address' 'Contact' 'Location' ]) %]
[% WHILE (row = results.next) %]
[% mylist = [] %]
[% mylist.push(row.name) %]
[% mylist.push(row.dns) %]
[% mylist.push(row.ip) %]
[% mylist.push(row.contact) %]
[% mylist.push(row.location) %]
[% CSV.dump(mylist) %]
[% END %]