diff --git a/Netdisco/share/views/ajax/device/ports.tt b/Netdisco/share/views/ajax/device/ports.tt index f473f302..ae4a9f87 100644 --- a/Netdisco/share/views/ajax/device/ports.tt +++ b/Netdisco/share/views/ajax/device/ports.tt @@ -1,5 +1,5 @@ [% SET user_can_port_control = user_has_role('port_control') %] -
| @@ -7,8 +7,13 @@ [% NEXT IF item.name == 'c_admin' %] [% NEXT IF item.name == 'c_nodes' AND params.c_nodes AND params.c_neighbors %] [% NEXT UNLESS params.${item.name} %] - | + [% SET th_class = '' %] + [% IF (user_can_port_control AND params.c_admin AND (item.name == 'c_port' OR item.name == 'c_name')) %] + [% th_class = ' class="nd_nudge-for-icon natural"' %] + [% ELSIF (item.name == 'c_port' OR item.name == 'c_descr' OR item.name == 'c_name') %] + [% th_class = ' class="natural"' %] + [% END %] + | [% item.label | html_entity %] | [% END %] @@ -368,3 +373,17 @@ [% END %] + +
|---|