1<table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0">
2  <thead>
3    <tr>
4      <th>Observing Interface</th>
5      <th>Undiscovered Neighbor</th>
6      <th>Neighbor ID</th>
7      <th nowrap>Last Discovery</th>
8    </tr>
9  </thead>
10  <tbody>
11    [% FOREACH row IN results %]
12    [% NEXT IF NOT row.remote_ip %]
13    <tr>
14      <td nowrap><a href="[% device_ports | none %]&q=[% row.ip | uri %]">
15              [% row.dns || row.name || row.ip | html_entity %]</a><br>
16          <a href="[% device_ports | none %]&q=[% row.ip | uri %]&f=[% row.port | uri %]">
17              [% row.port | html_entity %]</a>
18          [% IF row.port_description %]<br>[% row.port_description | html_entity %][% END %]
19          [% IF row.comment %]<br>&quot;<em>[% row.comment | html_entity %]</em>&quot;[% END %]
20      </td>
21      <td nowrap><a href="[% search_node | none %]&q=[% row.remote_ip | uri %]">
22          [% row.remote_ip | html_entity %]</a><br>
23          [% row.remote_port | html_entity %]</td>
24      <td>[% row.remote_id | html_entity %]<br>
25          [% row.remote_type | remove('(?:(?:C|c)opyright\s+)?\(c\).*') | remove('Technical Support: http://.*') | html_entity | html_line_break %]</td>
26      <td nowrap>[% row.finished | html_entity %]<br>[% row.log | html_entity %]</td>
27    </tr>
28    [% END %]
29  </tbody>
30</table>
31
32<script>
33$(document).ready(function() {
34  $('#data-table').dataTable({
35    "order": [[ 2, 'desc' ], [ 1, 'asc' ] ],
36[% INCLUDE 'ajax/datatabledefaults.tt' -%]
37  } );
38} );
39</script>
40
41