add Half Duplex Ports report

This commit is contained in:
Oliver Gorwits
2013-09-06 00:23:31 +01:00
parent ba0c8d0b89
commit 9d3f3ee179
4 changed files with 55 additions and 2 deletions

View File

@@ -2,10 +2,10 @@
<thead>
<tr>
<th class="nd_center-cell">Left Device</th>
<th class="nd_center-cell">Interface</th>
<th class="nd_center-cell">Port</th>
<th class="nd_center-cell">Duplex</th>
<th class="nd_center-cell">Right Device</th>
<th class="nd_center-cell">Interface</th>
<th class="nd_center-cell">Port</th>
<th class="nd_center-cell">Duplex</th>
</tr>
</thead>

View File

@@ -0,0 +1,23 @@
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
<thead>
<tr>
<th>Device</th>
<th class="nd_center-cell">Port</th>
<th class="nd_center-cell">Description</th>
<th class="nd_center-cell">Duplex</th>
</tr>
</thead>
</tbody>
[% WHILE (row = results.next) %]
<tr>
<td>[% row.device.dns || row.device.ip | html_entity %]</td>
<td class="nd_center-cell"><a class="nd_linkcell"
href="[% device_ports %]&q=[% row.device.dns || row.device.ip | uri %]&f=[% row.port | uri %]&c_duplex=on">
[% row.port | html_entity %]</a></td>
<td class="nd_center-cell">[% row.name | html_entity %]</td>
<td class="nd_center-cell">[% row.duplex.ucfirst | html_entity %]</td>
</tr>
[% END %]
</tbody>
</table>