diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm index f1fd8f28..e99285b3 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm @@ -36,7 +36,8 @@ get '/ajax/content/report/portmultinodes' => require_login sub { return unless scalar @results; if ( request->is_ajax ) { - template 'ajax/report/portmultinodes.tt', { results => \@results, }, + my $results = to_json (\@results); + template 'ajax/report/portmultinodes.tt', { results => $results, }, { layout => undef }; } else { diff --git a/Netdisco/share/views/ajax/report/portmultinodes.tt b/Netdisco/share/views/ajax/report/portmultinodes.tt index 3a962c31..c1d22ec5 100644 --- a/Netdisco/share/views/ajax/report/portmultinodes.tt +++ b/Netdisco/share/views/ajax/report/portmultinodes.tt @@ -1,23 +1,44 @@ -[% USE Number.Format %] -
| Device | -Port | -Port Description | -Node Count | +Port | +Port Description | +Node Count |
|---|---|---|---|---|---|---|
| [% row.dns || row.name || row.ip | html_entity %] | -- [% row.port | html_entity %] | -[% row.description | html_entity %] | -[% row.mac_count | format_number %] | -