Files
netdisco/Netdisco/share/views/ajax/search/port.tt
Oliver Gorwits 947614ddd8 new port-search wildcarding - bad idea?
* for an exact match use "quoting", a bit like what Google does
to enforce a search term

* otherwise terms are assumed to be wildcard bounded and case insensitive

* without quotes, * and ? characters are supported for multi and single
character wildcards.

we could revert this commit if we don't like it.
2013-09-08 23:44:27 +01:00

24 lines
696 B
Plaintext

<table class="table table-bordered table-condensed table-striped nd_floatinghead">
<thead>
<tr>
<th>Description</th>
<th>Port</th>
<th>Name</th>
<th>Vlan</th>
</tr>
</thead>
</tbody>
[% WHILE (row = results.next) %]
<tr>
<td>[% row.name | html_entity %]</td>
<td><a href="[% device_ports %]&q=[% row.device.dns || row.ip | uri %]&f=%22[% row.port | uri %]%22">
[% row.ip | html_entity %] [ [% row.port | html_entity %] ]</a>
[% ' (' _ row.device.dns _ ')' IF row.device.dns %]
</td>
<td>[% row.descr | html_entity %]</td>
<td>[% row.vlan | html_entity %]</td>
</tr>
[% END %]
</tbody>
</table>