%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
%# General Public License for more details.
+<%init>
+my %data = $m->comp('Customers', Ticket => $Ticket);
+</%init>
+<style>
+.small_custview {
+ padding-top: 1em;
+}
+</style>
<table>
-% my $cust = 0;
-% foreach my $custResolver ( map { $_->TargetURI->Resolver }
-% @{ $Ticket->Customers->ItemsArrayRef }
-% )
-% {
-% $cust++;
-% my $cust_main = '';
+% foreach my $custnum (@{ $data{custnums} }) {
+% my $cust = $data{cust_main}{$custnum};
<tr>
<td class="value">
- <A HREF="<% $custResolver->HREF %>"><% $custResolver->AsStringLong |n %></A>
+ <% $cust->AsStringLong |n %>
+% foreach my $svc ( @{ $data{cust_svc}{$custnum} || [] } ) {
+ <% $svc->ShortLink |n %>
+ <br>
+% }
</td>
</tr>
% }
-% unless ( $cust ) {
+
+% unless ( @{ $data{custnums} } ) {
<tr>
<td class="labeltop">
<i>(none)<i>