diff --git a/status/status-lib.pl b/status/status-lib.pl index 0fe0992d7..b6f80fef7 100755 --- a/status/status-lib.pl +++ b/status/status-lib.pl @@ -386,19 +386,17 @@ else { } } -# nice_remotes(&monitor, [max]) +# nice_remotes(&monitor) sub nice_remotes { -my ($s, $max) = @_; -$max ||= 3; +my ($s) = @_; my @remotes = map { $_ eq "*" ? $text{'index_local'} : &html_escape($_) } split(/\s+/, $s->{'remote'}); foreach my $g (split(/\s+/, $s->{'groups'})) { push(@remotes, &text('index_group', $g)); } -return @remotes > $max ? join(", ", @remotes[0..$max]).", ..." - : join(", ", @remotes); +return join("
", @remotes); } sub group_desc