removing JS-only links (closes #21)
This commit is contained in:
		| @@ -20,7 +20,7 @@ | ||||
|       <td> | ||||
|         [% IF first_row %] | ||||
|         <a class="nd_linkcell" | ||||
|           href="[% uri_for('/search') %]?[% vars.query_defaults.node %]&q=[% row.mac | uri %]">[% row.mac %]</a> | ||||
|           href="[% vars.search_node %]&q=[% row.mac | uri %]">[% row.mac %]</a> | ||||
|         [% ELSE %] | ||||
|           | ||||
|         [% END %] | ||||
| @@ -35,7 +35,7 @@ | ||||
|       </td> | ||||
|       [% END %] | ||||
|       <td>MAC → IP</td> | ||||
|       <td><a href="[% uri_for('/search') %]?[% vars.query_defaults.node %]&q=[% row.ip | uri %]">[% row.ip %]</a> | ||||
|       <td><a href="[% vars.search_node %]&q=[% row.ip | uri %]">[% row.ip %]</a> | ||||
|         [% ' (' _ row.dns.remove(settings.domain_suffix) _ ')' IF row.dns %] | ||||
|         [% ' <span class="label label-warning">A</span>' IF NOT row.active %] | ||||
|       </td> | ||||
| @@ -51,7 +51,7 @@ | ||||
|       <td> | ||||
|         [% IF first_row %] | ||||
|         <a class="nd_linkcell" | ||||
|           href="[% uri_for('/search') %]?[% vars.query_defaults.node %]&q=[% node.mac | uri %]">[% node.mac %]</a> | ||||
|           href="[% vars.search_node %]&q=[% node.mac | uri %]">[% node.mac %]</a> | ||||
|         [% ELSE %] | ||||
|           | ||||
|         [% END %] | ||||
| @@ -66,7 +66,7 @@ | ||||
|       </td> | ||||
|       [% END %] | ||||
|       <td>Switch Port</td> | ||||
|       <td><a href="[% uri_for('/device') %]?tab=ports&q=[% node.switch | url %]&f=[% node.port | url %]">[% node.switch %] [ [% node.port %] ]</a> | ||||
|       <td><a href="[% vars.device_ports %]&q=[% node.switch | url %]&f=[% node.port | url %]">[% node.switch %] [ [% node.port %] ]</a> | ||||
|         [% ' (' _ node.device.dns.remove(settings.domain_suffix) _ ')' IF node.device.dns %] | ||||
|         [% ' <span class="label label-warning">A</span>' IF NOT node.active %] | ||||
|       </td> | ||||
| @@ -82,7 +82,7 @@ | ||||
|       <td> | ||||
|         [% IF first_row %] | ||||
|         <a class="nd_linkcell" | ||||
|           href="[% uri_for('/search') %]?[% vars.query_defaults.node %]&q=[% port.mac | uri %]">[% port.mac %]</a> | ||||
|           href="[% vars.search_node %]&q=[% port.mac | uri %]">[% port.mac %]</a> | ||||
|         [% ELSE %] | ||||
|           | ||||
|         [% END %] | ||||
| @@ -97,7 +97,7 @@ | ||||
|       </td> | ||||
|       [% END %] | ||||
|       <td>Switch Port</td> | ||||
|       <td><a href="[% uri_for('/device') %]?tab=ports&q=[% port.ip | url %]&f=[% port.port | url %]">[% port.ip %] [ [% port.port %] ]</a> | ||||
|       <td><a href="[% vars.device_ports %]&q=[% port.ip | url %]&f=[% port.port | url %]">[% port.ip %] [ [% port.port %] ]</a> | ||||
|         [% ' (' _ port.device.dns.remove(settings.domain_suffix) _ ')' IF port.device.dns %] | ||||
|       </td> | ||||
|       [% IF params.stamps %] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user