implement ports list filtering

This commit is contained in:
Oliver Gorwits
2012-01-12 22:19:17 +00:00
parent e817220856
commit f1eb6eb201
5 changed files with 48 additions and 7 deletions

View File

@@ -9,10 +9,7 @@
</tr>
</thead>
</tbody>
[% SET rownum = 0 %]
[% FOREACH row in results %]
[% NEXT IF params.free AND NOT row.is_free(params.age_num, params.age_unit) %]
[% SET rownum = rownum + 1 %]
<tr>
<td>
[% IF row.up_admin == 'down' %]
@@ -77,7 +74,7 @@
[% SET count = count + 1 %]
[% END %]
[% IF count > 10 %]
[% SET output = '<div style="float: right">(' _ count _ ')</div><a href="#" class="nd_linkcell nd_collapse_vlans">'
[% SET output = '<div class="vlan_total">(' _ count _ ')</div><a href="#" class="nd_linkcell nd_collapse_vlans">'
_ 'Show VLANs</a><div class="nd_collapse_pre_hidden">' _ output %]
[% SET output = output _ '</div>' %]
[% END %]