sub render_el {
my ($self, $whole, $key, $part) = @_;
if (ref($part) eq 'ARRAY') {
- if ($key eq 'entries') {
- if (grep { ref($_) eq 'HASH' } @$part) {
+ if (grep { ref($_) eq 'HASH' } @$part) {
+ if ($whole->{key}) {
+ return $self->link_to($whole->{key})
+ } elsif ($whole->{name}) {
return $self->link_to($whole->{name}, $key);
}
+ $part = '(complex)';
}
return join(', ', @$part);
}