use qstr in templates
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
[% NEXT UNLESS p.channel # No channel port is admin down %]
|
||||
<tr>
|
||||
<td>
|
||||
<a href="[% device_ports %]&q=[% results.$row.device.dns || results.$row.device.ip | uri %]&f=[% p.port | uri %]">
|
||||
<a href="[% device_ports %]&[% results.$row.device.qstr %]&f=[% p.port | uri %]">
|
||||
[% p.port | html_entity %]</a></td>
|
||||
<td>[% p.name %]</td>
|
||||
<td>[% p.descr %]</td>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</tbody>
|
||||
[% FOREACH row IN results %]
|
||||
<tr>
|
||||
<td class="nd_center-cell"><a href="[% search_device %]&q=[% row.dns || row.ip | uri %]">
|
||||
<td class="nd_center-cell"><a href="[% search_device %]&[% row.qstr %]">
|
||||
[% row.dns || row.name || row.ip | html_entity %]</a>
|
||||
<td class="nd_center-cell">[% row.alias | html_entity %]</td>
|
||||
<td class="nd_center-cell">[% row.contact | html_entity %]</td>
|
||||
@@ -18,4 +18,4 @@
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
[Not Set]
|
||||
[% END %]
|
||||
</td>
|
||||
<td><a href="[% uri_for('/device') %]?q=[% row.dns || row.ip | uri %]">[% row.dns || row.ip | html_entity %]</a></td>
|
||||
<td><a href="[% uri_for('/device') %]?[% row.qstr %]">[% row.dns || row.ip | html_entity %]</a></td>
|
||||
<td><a href="[% search_device %]&q=[% row.name | uri %]&name=[% row.name | uri %]">
|
||||
[% row.name | html_entity %]</a>
|
||||
</td>
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
<tr>
|
||||
<td class="nd_center-cell">[% row.left_dns || row.left_ip | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||
href="[% device_ports %]&q=[% row.left_dns || row.left_ip | uri %]&f=[% row.left_port | uri %]&c_duplex=on">
|
||||
href="[% device_ports %]&[% row.left_qstr %]&f=[% row.left_port | uri %]&c_duplex=on">
|
||||
[% row.left_port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.left_duplex.ucfirst | html_entity %]</td>
|
||||
|
||||
<td class="nd_center-cell">[% row.right_dns || row.right_ip | html_entity %]</a>
|
||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||
href="[% device_ports %]&q=[% row.right_dns || row.right_ip | uri %]&f=[% row.right_port | uri %]&c_duplex=on">
|
||||
href="[% device_ports %]&[% row.right_qstr %]&f=[% row.right_port | uri %]&c_duplex=on">
|
||||
[% row.right_port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.right_duplex.ucfirst | html_entity %]</td>
|
||||
</tr>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<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">
|
||||
href="[% device_ports %]&[% row.device.qstr %]&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>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
[% ' <i class="icon-book text-warning"></i> ' IF NOT row.active %]
|
||||
</td>
|
||||
[% ELSIF row.time_last %]
|
||||
<td><a href="[% search_device %]&q=[% row.ip | uri %]">[% row.ip | html_entity %]</a>
|
||||
<td><a href="[% search_device %]&q=[% row.ip | uri %]&uuid=[% row.ip | uri %]">[% row.ip | html_entity %]</a>
|
||||
</td>
|
||||
[% ELSE %]
|
||||
<td>[% row.ip | html_entity %]</td>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<tr>
|
||||
<td class="nd_center-cell">[% row.dns || row.name || row.ip | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||
href="[% device_ports %]&q=[% row.dns || row.ip | uri %]&f=[% row.port | uri %]">
|
||||
href="[% device_ports %]&[% row.qstr %]&f=[% row.port | uri %]">
|
||||
[% row.port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.remote_id | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
[% FOREACH row IN results %]
|
||||
<tr>
|
||||
<td>[% row.dns || row.name || row.ip | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&q=[% row.dns || row.ip | uri %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&[% row.qstr %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
[% row.port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.description | html_entity %]</td>
|
||||
<td class="nd_center-cell">[% row.up_admin | html_entity %]</td>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
[% FOREACH row IN results %]
|
||||
<tr>
|
||||
<td>[% row.dns || row.name || row.ip | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&q=[% row.dns || row.ip | uri %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&[% row.qstr %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
[% row.port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.description | html_entity %]</td>
|
||||
<td class="nd_center-cell">[% row.stp | html_entity %]</td>
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
[% FOREACH row IN results %]
|
||||
<tr>
|
||||
<td>[% row.dns || row.name || row.ip | html_entity %]</td>
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&q=[% row.dns || row.ip | uri %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
<td class="nd_center-cell"><a href="[% device_ports %]&q=[% row.dns || row.ip | uri
|
||||
%]&uuid=[% row.ip | uri %]&f=[% row.port | uri %]&c_nodes=on">
|
||||
[% row.port | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.description | html_entity %]</td>
|
||||
<td class="nd_center-cell">[% row.mac_count | format_number %]</td>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</tbody>
|
||||
[% WHILE (row = results.next) %]
|
||||
<tr>
|
||||
<td><a href="[% device_ports %]&q=[% row.dns || row.ip | uri %]">[% row.dns || row.ip | html_entity %]</a></td>
|
||||
<td><a href="[% device_ports %]&[% row.qstr %]">[% row.dns || row.ip | html_entity %]</a></td>
|
||||
<td class="nd_center-cell">[% row.port_count %]</td>
|
||||
<td class="nd_center-cell">[% row.ports_in_use %]</td>
|
||||
<td class="nd_center-cell">[% row.ports_shutdown %]</td>
|
||||
|
||||
Reference in New Issue
Block a user