device names do not have domain_suffix trimmed, but nodes do

This commit is contained in:
Oliver Gorwits
2013-02-10 15:40:33 +00:00
parent 4d832cb2a5
commit 05725073e1
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
[ENHANCEMENTS] [ENHANCEMENTS]
* When linking to devices, use the DNS name in preference to the IP * When linking to devices, use the DNS name in preference to the IP
(makes for more attractive navigation search bar, but need to watch for aliases)
* In general, device names do not have domain_suffix trimmed, but nodes do
[BUG FIXES] [BUG FIXES]

View File

@@ -12,7 +12,7 @@
[% WHILE (row = results.next) %] [% WHILE (row = results.next) %]
<tr> <tr>
<td>[% row.alias %]</a> <td>[% row.alias %]</a>
<td>[% row.dns.remove(settings.domain_suffix) %]</a> <td>[% row.dns %]</a>
<td class="center_cell"><a class="nd_linkcell" <td class="center_cell"><a class="nd_linkcell"
href="[% device_ports %]&q=[% params.q | uri %]&f=[% row.port | uri %]">[% row.port %]</a></td> href="[% device_ports %]&q=[% params.q | uri %]&f=[% row.port | uri %]">[% row.port %]</a></td>
<td>[% row.device_port.name %]</td> <td>[% row.device_port.name %]</td>