From 5d363d60fe1a7200e4a25a530d2253cb5ca712e0 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 31 May 2024 12:14:45 +0300 Subject: [PATCH] Fix to break remotes to a new line without pointless limits --- status/status-lib.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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